Christian Clauss
df7d2b3aeb
Fix typos found by codespell ( #31243 )
...
* Fix typos found by codespell
* Fix typos found by codespell
* codespell: Furture ==> Future
* Update test_config_flow.py
* Update __init__.py
* Spellcheck: successfull ==> successful
* Codespell: unsuccesful ==> unsuccessful
* Codespell: cant ==> can't
* Codespell: firware ==> firmware
* Codespell: mimick ==> mimic
2020-01-31 08:33:00 -08:00
Paulus Schoutsen
1f0f62de7f
Add unique IDs to automation/scenes ( #31150 )
...
* Add unique IDs to automation and scenes
* Fix typo
2020-01-26 23:01:35 -08: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
Bram Kragten
e419689229
Add config endpoint for scene ( #28429 )
...
* Add config endpoint for scene
* Add scenes to default config
* Fix test and add context to websocket service call
* Update scene.py
* Add tests
2019-11-04 12:38:18 -08:00
Paulus Schoutsen
f704a8e90e
Reload config entry when entity enabled in entity registry, remove entity if disabled. ( #26120 )
...
* Reload config entry when disabled_by updated in entity registry
* Add types
* Remove entities that get disabled
* Remove unnecessary domain checks.
* Attach handler in async_setup
* Remove unused var
* Type
* Fix test
* Fix tests
2019-08-22 19:32:43 -05:00
Paulus Schoutsen
aa56b4dd30
Log warning if disabled entities receive updates. ( #26143 )
...
* Log warning if disabled entities receive updates.
* Fix test
* Always set entity ID on disabled entities
2019-08-22 14:12:24 -07:00
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
eba6caf8a1
Entity registry api update disable ( #26015 )
...
* Clean up entity registry WS commands
* Allow updating disabled_by in entity registry
* Allow changing disabled_by via API
* Update tests/components/config/test_entity_registry.py
Co-Authored-By: Robert Svensson <Kane610@users.noreply.github.com>
2019-08-16 16:22:45 -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
Penny Wood
84e6813779
Rename via_hub to via_device ( #24360 )
...
* Rename via_hub to via_device
* Fixed registry interactions
2019-06-10 09:10:44 -07:00
Paulus Schoutsen
9e96397e6a
Require core config detection to be triggerd manually ( #24019 )
...
* Detect core config
* Remove elevation
* Lint
* Lint
* Fix type
2019-05-22 17:24:46 -07:00
Erik Montnemery
fc58746bc3
Add websocket API for updating core config ( #24009 )
...
* Add websocket API for updating core config
2019-05-21 07:21:31 +02:00
Paulus Schoutsen
a859997190
Allow deletion of automations and scripts ( #23845 )
2019-05-14 09:16:36 +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
uchagani
0c4380a78d
remove config sections from hass.config.components ( #22370 )
...
* remove config sections from hass.config.components
* fix tests
2019-03-25 22:36:39 -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
Paulus Schoutsen
8bfbe3e085
Add update user command ( #21922 )
...
* Add update user command
* Add is_admin to current user
2019-03-11 12:08:02 -07:00
Paulus Schoutsen
4c9e5eef9c
Remove stub from config component ( #21822 )
2019-03-08 14:07:49 -08:00
David F. Mulcahey
c4400be62a
Add friendly name to devices in the device registry ( #21318 )
...
* add friendly name to devices in the device registry
* switch to name_by_user
* review comments
2019-02-26 12:20:16 -08: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
8062f48973
Add remove commmand to entity registry ( #20597 )
2019-01-30 09:50:32 -08:00
Robert Svensson
bd335e1ac1
Area registry ( #20435 )
...
* First draft of area registry
* Refactor based on input
* Add tests for areas
Add tests for updating device
* Updating a device shouldn't require area
* Fix Martins comment
* Require admin
* Save after deleting
* Rename read to list_areas
Fix device entry_dict
Remove area id from device when deleting area
* Fix tests
2019-01-28 15:52:42 -08:00
Paulus Schoutsen
84a2e5d8fb
Strip login username in backend ( #20150 )
...
* Add modern mode to HA auth provider that strips usernames
* Add tests for async_get_or_create_credentials
* Fix test
2019-01-16 15:03:05 -08:00
Paulus Schoutsen
4f98818258
Rename is_owner decorator to is_admin ( #19266 )
...
* Rename is_owner decorator to is_admin
* Update test_auth.py
2018-12-14 10:19:27 +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
c3b1121d77
Add group foundation ( #16935 )
...
Add group foundation
2018-10-08 16:35:38 +02: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
da3342f1aa
Update new values coming in for dev registry ( #16852 )
...
* Update new values coming in for dev registry
* fix Lint+Test;2C
2018-09-27 11:26:58 +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
b8257866f5
Clean up device update, add via-hub ( #16659 )
...
* Clean up device update, add via-hub
* Test loading/saving data
* Lint
* Add to Hue"
* Lint + tests
2018-09-17 13:39:30 +02:00
Paulus Schoutsen
201fd4afee
Add config entries to connection class ( #16618 )
2018-09-17 10:12:46 +02:00
Paulus Schoutsen
05c0717167
Add websocket list APIs for the registries ( #16597 )
...
* Add websocket list APIs for the registries
* Remove identifiers
* Fix tests
* Use ordered dict
2018-09-14 11:57:18 +02:00
Paulus Schoutsen
e776f88eec
Use JWT for access tokens ( #15972 )
...
* Use JWT for access tokens
* Update requirements
* Improvements
2018-08-14 21:14:12 +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
d9cf8fcfe8
Allow changing entity ID ( #15637 )
...
* Allow changing entity ID
* Add support to websocket command
* Address comments
* Error handling
2018-07-24 14:12:53 +02:00
John Arild Berentsen
1b94fe3613
Add ability to set Zwave protection commandclass ( #15390 )
...
* Add API for protection commandclass
* Adjusting
* tests
* Spelling
* Missed flake8
* Period
* spelling
* Review changes
* removing additional .keys()
* period
* Move i/o out into executor pool
* Move i/o out into executor pool
* Forgot get method
* Do it right... I feel stupid
* Long lines
* Merging
2018-07-23 15:31:12 +02:00
Jerad Meisner
396895d077
Added WS endpoint for changing homeassistant password. ( #15527 )
...
* Added WS endpoint for changing homeassistant password.
* Remove change password helper. Don't require current password.
* Restore current password verification.
* Added tests.
* Use correct send method
2018-07-19 09:39:51 +02:00
Paulus Schoutsen
70fe463ef0
User management ( #15420 )
...
* User management
* Lint
* Fix dict
* Reuse data instance
* OrderedDict all the way
2018-07-13 15:31:20 +02:00