deCONZ - use entity registry disabled_by to control available entities (#26219)

* First draft

* Support enabling disabled entities

* Clean up

* Move import

* Local entity enabled replaced during rebase

* Add option flow test

* Mark options properties with option
This commit is contained in:
Robert Svensson authored and Paulus Schoutsen committed 2019-09-05 16:38:00 -07:00
1 parent b1c2a5fa08
commit 518d2c31bb
19 files changed
+191 -82

No files matched your search

+1 -1
View File
@@ -143,7 +143,7 @@ async def test_add_new_switch(hass):
switch.type = "Smart plug"
switch.uniqueid = "1"
switch.register_async_callback = Mock()
async_dispatcher_send(hass, gateway.async_event_new_device("light"), [switch])
async_dispatcher_send(hass, gateway.async_signal_new_device("light"), [switch])
await hass.async_block_till_done()
assert "switch.name" in gateway.deconz_ids