Paulus Schoutsen
1c5b4dbd97
Add current step that is in progress ( #35272 )
2020-05-05 21:34:51 -07:00
Paulus Schoutsen
76f392476b
Use a future for mock coro ( #34989 )
2020-04-30 16:31:00 -07:00
Paulus Schoutsen
6404882ec4
Allow flows to know if user is in advanced mode ( #34629 )
2020-04-24 09:31:56 -07:00
Paulus Schoutsen
f87c44e544
Test updating non existing config entry ( #34191 )
2020-04-14 11:43:22 +02:00
Paulus Schoutsen
89fe488b7c
Add websocket API to update config entry title ( #34155 )
2020-04-13 17:38:39 -07:00
Franck Nijhof
906385172a
String formatting improvements for tests ( #33663 )
2020-04-05 00:26:08 +02:00
Franck Nijhof
320dc52bb3
Migrate config tests from coroutine to async/await ( #30366 )
2020-01-01 17:16:27 -06:00
Paulus Schoutsen
9c7caaa142
Add option to ignore flows ( #30008 )
2019-12-18 07:41:01 +01:00
Bas Nijholt
f355570f17
use isort to sort imports according to PEP8 for config ( #29628 )
2019-12-08 22:27:28 +05:30
Paulus Schoutsen
93a800a612
Convert progress API to WS ( #26082 )
2019-08-20 00:17:52 -07:00
Robert Svensson
a2589f56e1
Add system options to config entries ( #25926 )
...
* Add system options to config entries
* For feedback
* Follow most of balloobs comments
* Fix balloobs comments
* Improvements
* Fix second round of Balloobs comments
* Fix third round
* Add system options to mock config entry
* Fix integration tests
* Fix the last failing tests
* Fix disabled string
* Fix failing disabled_by tests
* New tests
* Config entry WS API tests
* Fix comments
2019-08-17 21:34:11 -07:00
Paulus Schoutsen
8b66c11706
Fix config entry has options check ( #25976 )
...
* Fix config entry has options check
* Register webhook/discovery config flows with classes
* Fix types
* Apply suggestions from code review
Co-Authored-By: Martin Hjelmare <marhje52@kth.se>
2019-08-16 16:19:19 -07:00
Paulus Schoutsen
8a1ab8c0b5
Tweaks to options flow ( #25969 )
2019-08-15 14:11:55 -07:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Joakim Plate
2fbbcafaed
Support config flow on custom components ( #24946 )
...
* Support populating list of flows from custom components
* Re-allow custom component config flows
* Add tests for custom component retrieval
* Don't crash view if no handler exist
* Use get_custom_components instead fo resolve_from_root
* Switch to using an event instead of lock
* Leave list of integrations as set
* The returned list is not guaranteed to be ordered
Backend uses a set to represent them.
2019-07-09 01:19:37 +02:00
Paulus Schoutsen
1e22c8daca
Automatically generate config flow list ( #23802 )
...
* Add config flow to manifest.json
* Still load config flows via config flow platform
* Fix typo
* Lint
* Update config_flows.py"
* Catch import error when setting up entry
* Lint
* Fix tests
* Fix imports
* Lint
* Fix Unifi tests
* Fix translation test
* Add homekit_controller config flow
2019-05-13 01:16:55 -07:00
Paulus Schoutsen
d722f4d64a
Further integration load cleanups ( #23104 )
...
* Further integration load cleanups
* Fix tests
* Unflake MQTT vacuum command test
2019-04-14 19:07:05 -07:00
Jason Hu
64306922b1
Fix name conflict in tests ( #22556 )
...
* Fix name conflict in tests
* Lint
* Lint
2019-03-30 08:30:21 -07:00
Paulus Schoutsen
941f9b29dc
Return config entry ID after creation ( #22060 )
2019-03-15 07:41:34 -07:00
Robbie Trencheny
3769f5893a
Mobile App: Register devices into the registry ( #21856 )
...
* Register devices into the registry
* Switch to device ID instead of webhook ID
* Rearchitect mobile_app to support config entries
* Kill DATA_REGISTRATIONS by migrating registrations into config entries
* Fix tests
* Improve how we get the config_entry_id
* Remove single_instance_allowed
* Simplify setup_registration
* Move webhook registering functions into __init__.py since they are only ever used once
* Kill get_registration websocket command
* Support description_placeholders in async_abort
* Add link to mobile_app implementing apps in abort dialog
* Store config entry and device registry entry in hass.data instead of looking it up
* Add testing to ensure that the config entry is created at registration
* Fix busted async_abort test
* Remove unnecessary check for entry is None
2019-03-14 12:57:50 -07:00
Robert Svensson
d9712027e8
Config entry options ( #18929 )
...
Add support for options flow for config entries
2019-02-22 17:59:43 +01:00
Paulus Schoutsen
85e6f92c5a
Lint
2018-12-13 20:08:31 +01:00
Paulus Schoutsen
90df932fe1
Check admin permission before able to manage config entries
2018-12-13 16:13:43 +01:00
Paulus Schoutsen
d1a621601d
No more opt-out auth ( #18854 )
...
* No more opt-out auth
* Fix var
2018-12-02 16:32:53 +01:00
Paulus Schoutsen
f5632a5da5
Add webhook + IFTTT example ( #16817 )
...
* Add webhook + IFTTT example
* Abort if not externally accessible
* Abort on local url
* Add description to create entry
* Make body optional
* Allow ifttt setup without config
* Add tests
* Lint
* Fix Lint + Tests
* Fix typing
2018-09-30 14:45:48 +02:00
Paulus Schoutsen
a1c914dfeb
On removal, only unload config entry if loaded ( #16844 )
...
* On removal, only unload config entry if loaded
* Fix test
2018-09-25 14:29:13 +02:00
Paulus Schoutsen
201fd4afee
Add config entries to connection class ( #16618 )
2018-09-17 10:12:46 +02: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
e014a84215
Nest config flow ( #14921 )
...
* Move nest to dir based component
* Add config flow for Nest
* Load Nest platforms via config entry
* Add tests for Nest config flow
* Import existing access tokens as config entries
* Lint
* Update coverage
* Update translation
* Fix tests
* Address strings
* Use python-nest token resolution
* Lint
* Do not do I/O inside constructor
* Lint
* Update test requirements
2018-06-13 11:14:52 -04:00
Paulus Schoutsen
83d300fd11
Custom component loading cleanup ( #14211 )
...
* Clean up custom component loading
* Fix some tests
* Fix some stuff
* Make imports work again
* Fix tests
* Remove debug print
* Lint
2018-05-01 20:57:30 +02:00
Paulus Schoutsen
534aa0e4b5
Add data entry flow helper ( #13935 )
...
* Extract data entry flows HTTP views into helper
* Remove use of domain
* Lint
* Fix tests
* Update doc
2018-04-17 11:44:32 +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
Paulus Schoutsen
89a19c89a7
Fix aiohttp deprecation warnings ( #13240 )
...
* Fix aiohttp deprecation warnings
* Fix Ring deprecation warning
* Lint
2018-03-15 21:49:49 +01:00
Adam Mills
26960283a0
Config flow translations ( #13066 )
...
* Development script for testing translation strings
* Localize backend of config flow
* Fix hue tests
* Update hue.en.json
* Move components to individual directories
* Bridge -> bridge
2018-03-11 12:04:34 -07:00
Paulus Schoutsen
b3a47722f0
Initial support for Config Entries ( #12079 )
...
* Introduce Config Entries
* Rebase fail
* Address comments
* Address more comments
* RequestDataValidator moved
2018-02-16 14:07:38 -08:00