Commit graph

13 commits

Author SHA1 Message Date
Andrew Sayre
cfaaae661a Add core APIs to migrate device identifiers and entity unique_id ()
* Add device identifiers migration

* Add entity unique_id migration

* Update per arch issue

* Move to existing update methods
2019-04-30 10:04:37 -07:00
Jason Hu
3d8673dbf8 Resolve auth_store loading race condition ()
* Add lock in auth_store._async_load()

* Python 3.5 does not like assert_called_once()
2019-03-08 14:50:24 -08:00
Paulus Schoutsen
0300ef2040
Fix entity registry comments () 2019-01-23 16:33:21 -08:00
Paulus Schoutsen
e964750ac1
Fix invalid entity ID in entity registry () 2019-01-22 14:07:17 -08:00
Paulus Schoutsen
b8257866f5
Clean up device update, add via-hub ()
* 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
Robert Svensson
7a6facc875 Device and entity registry remove config entry on unload ()
* Test

* Ability to remove device

* Don't remove devices, instead remove config entry from device and entity registries

* Remove print

* Remove is not the same as unload

* Add tests

* Fix hound comment
2018-09-04 09:00:14 +02:00
Paulus Schoutsen
8ec550d6e0 Storage entity registry ()
* Split out storage delayed write

* Update code using delayed save

* Fix tests

* Fix typing test

* Add callback decorator

* Migrate entity registry to storage helper

* Make double loading protection easier

* Lint

* Fix tests

* Ordered Dict
2018-08-18 13:34:33 +02:00
Paulus Schoutsen
8b04d48ffd
Update config entry id in entity registry () 2018-07-19 08:37:13 +02:00
Paulus Schoutsen
67d137cfd5 Store config entry id in entity registry ()
* Store config entry id in entity registry

* Lint
2018-06-07 20:23:09 +02:00
Andrey
d1228d5cf4 Look at registry before pulling zwave config values ()
* Look at registry before deciding on ID for zwave values

* Reuse the new function
2018-05-12 17:45:36 -04:00
Paulus Schoutsen
d2cea84254 Allow disabling entities in the registry () 2018-02-13 13:33:15 +01:00
Paulus Schoutsen
17e5740a0c
Allow overriding name via entity registry ()
* Allow overriding name via entity registry

* Update requirements
2018-02-11 09:16:01 -08:00
Paulus Schoutsen
e51427b284 Entity registry ()
* Entity#unique_id defaults to None

* Initial commit entity registry

* Clean up unique_id property

* Lint

* Add tests to entity component

* Lint

* Restore some unique ids

* Spelling

* Remove use of IP address for unique ID

* Add tests

* Add tests

* Fix tests

* Add some docs

* Add one more test

* Fix new test…
2018-01-30 10:39:39 +01:00