Library refactorization of deCONZ (#23725)

* Improved sensors

* Lib update signalling

* Replace reason with changed

* Move imports to top of file

* Add support for secondary temperature reported by some Xiaomi devices

* Bump dependency to v59
This commit is contained in:
Robert Svensson authored and GitHub committed 2019-05-27 06:56:00 +02:00
1 parent 0ba54ee9b7
commit 31b2f331db
19 files changed
+104 -83

No files matched your search

+2 -1
View File
@@ -223,7 +223,8 @@ async def test_update_event():
remote.name = 'Name'
event = gateway.DeconzEvent(hass, remote)
event.async_update_callback({'state': True})
remote.changed_keys = {'state': True}
event.async_update_callback()
assert len(hass.bus.async_fire.mock_calls) == 1