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:
1 parent
b1c2a5fa08
commit
518d2c31bb
19 files changed
+191
-82
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user