Clean deCONZ tests to depend less on integration code (#41015)
This commit is contained in:
1 parent
dfe3ee5387
commit
552856203b
16 files changed
+237
-354
No files matched your search
@@ -55,7 +55,8 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
|
||||
):
|
||||
entities.append(DeconzBinarySensor(sensor, gateway))
|
||||
|
||||
async_add_entities(entities, True)
|
||||
if entities:
|
||||
async_add_entities(entities, True)
|
||||
|
||||
gateway.listeners.append(
|
||||
async_dispatcher_connect(
|
||||
|
||||
Reference in new issue
Block a user