Clean deCONZ tests to depend less on integration code (#41015)
This commit is contained in:
parent
dfe3ee5387
commit
552856203b
16 changed files with 237 additions and 354 deletions
|
@ -37,7 +37,8 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
|
|||
):
|
||||
entities.append(DeconzCover(light, gateway))
|
||||
|
||||
async_add_entities(entities, True)
|
||||
if entities:
|
||||
async_add_entities(entities, True)
|
||||
|
||||
gateway.listeners.append(
|
||||
async_dispatcher_connect(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue