J. Nick Koston
e109b04efe
Add api to reload config entries ( #39068 )
2020-08-26 00:59:22 +02:00
Erik Montnemery
747490ab34
Support reconfiguring MQTT config entry ( #36537 )
2020-06-22 17:49:01 -07:00
Ville Skyttä
0c5ca3084e
Add and fix type hints ( #36501 )
...
* Fix exceptions.Unauthorized.permission type
* Use auth.permission consts more
* Auth typing improvements
* Helpers typing improvements
* Calculate self.state only once
2020-06-06 20:34:56 +02:00
Paulus Schoutsen
89fe488b7c
Add websocket API to update config entry title ( #34155 )
2020-04-13 17:38:39 -07:00
springstan
9a40d5b7ed
Use HTTP_NOT_FOUND constant ( #33835 )
2020-04-09 00:57:47 +02:00
jjlawren
91018034b6
Use new custom_serializer ( #31871 )
2020-02-15 15:36:57 -08: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
9c7caaa142
Add option to ignore flows ( #30008 )
2019-12-18 07:41:01 +01:00
bouni
6d4e3945d6
moved imports to top level ( #27641 )
2019-10-14 10:25:55 -05:00
Paulus Schoutsen
93a800a612
Convert progress API to WS ( #26082 )
2019-08-20 00:17:52 -07:00
Paulus Schoutsen
a1dbdbba6a
Save config entry after updating system options ( #26077 )
2019-08-19 18:45:17 -05: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
941f9b29dc
Return config entry ID after creation ( #22060 )
2019-03-15 07:41:34 -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
90df932fe1
Check admin permission before able to manage config entries
2018-12-13 16:13:43 +01:00
cdce8p
8444b9ba03
Async syntax 2, camera & climate & config ( #17016 )
2018-10-01 08:50:05 +02:00
Paulus Schoutsen
201fd4afee
Add config entries to connection class ( #16618 )
2018-09-17 10:12:46 +02:00
Jason Hu
4291bdc6b2
Move voluptuous-serialize to core requirement ( #16507 )
2018-09-09 09:49:51 +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
Jason Hu
f6935b5d27
Upgrade voluptuous-serialize to 2.0.0 ( #15763 )
...
* Upgrade voluptuous-serialize to 2.0.0
* Change to 2.0.0
2018-08-03 05:23:26 -07: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
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
67c49a7662
Add config flow for Hue ( #12830 )
...
* Add config flow for Hue
* Upgrade to aiohue 0.2
* Fix tests
* Add tests
* Add aiohue to test requirements
* Bump aiohue dependency
* Lint
* Lint
* Fix aiohttp mock
* Lint
* Fix tests
2018-03-03 21:28:04 -08:00
Julius Mittenzwei
16cb7388ee
Removing asyncio.coroutine syntax from HASS core ( #12509 )
...
* changed asyncio.coroutine syntax to new async def/await
* removed py34 from tox environment
* reverted some changes within entity.py
* -
* reverted changes within bootstrap.py
* reverted changes within discovery.py
* switched decorators
* Reverted change within aiohttp_client.py
* reverted change within logging.py
* switched decorators
* Await lock properly
* removed asyncio.coroutine from test
2018-02-25 03:38:46 -08:00
Paulus Schoutsen
d68a24b3b8
Update voluptuous serialize ( #12538 )
2018-02-19 22:12:39 -08: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