Consolidate config flow components#20635
Conversation
|
UniFi device tracker isn't part of the config entry yet, so it should be kept apart |
|
Shouldn't the tests be moved as well? |
|
Maybe I'm just slow but could you write a note as to why we are doing this, and why only for config flows components? |
|
Does this also affects custom component structure? |
|
This is for config flow, custom components can't use config flow structure (at least not yet) |
|
@bratanon custom components can already use the new structure too. |
|
What is happening here? I currently have no idea, should I recommend one or the other setup for new contributors? |
|
Follow up on home-assistant/architecture#124 and #19948 The future is |
|
(this is already live in 0.86 btw) |
|
I understand that. I didn’t understand the selection of components though. Now I see that you updated the description to mention that this was just an easy way to get started. Thanks. |
|
@amelchio oops, I updated the description as a response to your comment but forgot to mention that. |
Description:
Consolidate all config flow components to the new component layout. Eventually we want to do this for all integrations but this was an easy list to get started. No more spreading them out. So change
binary_sensor/X.pytoX/binary_sensor.py.Wrote a small script to do this, we can use it for other components too: