Ville Skyttä
153d6e891e
Use config_entries.SOURCE_* constants ( #49631 )
2021-04-25 11:27:40 +02:00
J. Nick Koston
dafc7a072c
Cancel discovery flows that are initializing at shutdown ( #49241 )
2021-04-15 07:13:42 -10:00
Martin Hjelmare
1338c4a425
Add data entry flow show progress step ( #42419 )
2020-11-09 18:39:28 +01:00
Paulus Schoutsen
1c5b4dbd97
Add current step that is in progress ( #35272 )
2020-05-05 21:34:51 -07:00
Paulus Schoutsen
6404882ec4
Allow flows to know if user is in advanced mode ( #34629 )
2020-04-24 09:31:56 -07:00
Jc2k
fdfedd086b
Rework FlowManager to use inheritance ( #30133 )
...
* Pull async_finish_flow/async_create_flow out of ConfigEntries
* Towards refactoring
* mypy fixes
* Mark Flow manager with abc.* annotations
* Flake8 fixes
* Mypy fixes
* Blacken data_entry_flow
* Blacken longer signatures caused by mypy changes
* test fixes
* Test fixes
* Fix typo
* Avoid protected member lint (W0212) in config_entries
* More protected member fixes
* Missing await
2020-01-03 11:52:01 +01:00
Paulus Schoutsen
d851cb6f9e
Add unique ID to config entries ( #29806 )
...
* Add unique ID to config entries
* Unload existing entries with same unique ID if flow with unique ID is
finished
* Remove unused exception
* Fix typing
* silence pylint
* Fix tests
* Add unique ID to Hue
* Address typing comment
* Tweaks to comments
* lint
2019-12-16 12:27:43 +01:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Paulus Schoutsen
9debbfb1a8
Add SSDP integration ( #24090 )
...
* Add SSDP integration
* Fix tests
* Sort all the things
* Add netdisco to test requirements
2019-05-26 19:48:27 -07:00
Paulus Schoutsen
5888e32360
Add support for an external step in config flow ( #23782 )
...
* Add support for an external step in config flow
* Types
* Lint
2019-05-10 14:33:49 +02:00
Jason Hu
00c6f56cc8
Allow finish_flow callback to change data entry result type ( #16100 )
...
* Allow finish_flow callback to change data entry result type
* Add unit test
2018-08-21 10:48:24 -07:00
Jason Hu
50daef9a52
Add context to login flow ( #15914 )
...
* Add context to login flow
* source -> context
* Fix unit test
* Update comment
2018-08-13 11:27:18 +02:00
Jason Hu
f58425dd3c
Refactor data entry flow ( #15883 )
...
* Refactoring data_entry_flow and config_entry_flow
Move SOURCE_* to config_entries
Change data_entry_flow.FlowManager.async_init() source param default
to None
Change this first step_id as source or init if source is None
_BaseFlowManagerView pass in SOURCE_USER as default source
* First step of data entry flow decided by _async_create_flow() now
* Lint
* Change helpers.config_entry_flow.DiscoveryFlowHandler default step
* Change FlowManager.async_init source param to context dict param
2018-08-09 13:24:14 +02:00
Paulus Schoutsen
fa9b9105a8
Fix hue discovery popping up ( #14614 )
...
* Fix hue discovery popping up
* Fix result
* Fix tests
2018-05-24 14:24:14 -04:00
Paulus Schoutsen
5d3471269a
Show a notification when a config entry is discovered ( #14022 )
...
* Show a notification when a config entry is discovered
* update comment
* Inline functions
* Lint
2018-04-22 21:00:24 +02:00
Paulus Schoutsen
4d44c0feff
Further untangle data entry flow ( #13855 )
...
* Further untangle data entry flow
* Fix test
* Remove helper class
2018-04-14 14:38:24 -04:00
Paulus Schoutsen
60508f7215
Extract config flow to own module ( #13840 )
...
* Extract config flow to own module
* Lint
* fix lint
* fix typo
* ConfigFlowHandler -> FlowHandler
* Rename to data_entry_flow
2018-04-13 10:14:53 -04:00