No update before adding entity in deCONZ (#41948)
This commit is contained in:
1 parent
92f89213a3
commit
8c0b39eb9c
8 files changed
+9
-9
No files matched your search
@@ -56,7 +56,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
|
||||
entities.append(DeconzBinarySensor(sensor, gateway))
|
||||
|
||||
if entities:
|
||||
async_add_entities(entities, True)
|
||||
async_add_entities(entities)
|
||||
|
||||
gateway.listeners.append(
|
||||
async_dispatcher_connect(
|
||||
|
||||
@@ -45,7 +45,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
|
||||
entities.append(DeconzThermostat(sensor, gateway))
|
||||
|
||||
if entities:
|
||||
async_add_entities(entities, True)
|
||||
async_add_entities(entities)
|
||||
|
||||
gateway.listeners.append(
|
||||
async_dispatcher_connect(
|
||||
|
||||
@@ -38,7 +38,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
|
||||
entities.append(DeconzCover(light, gateway))
|
||||
|
||||
if entities:
|
||||
async_add_entities(entities, True)
|
||||
async_add_entities(entities)
|
||||
|
||||
gateway.listeners.append(
|
||||
async_dispatcher_connect(
|
||||
|
||||
@@ -50,7 +50,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities) -> None:
|
||||
entities.append(DeconzFan(light, gateway))
|
||||
|
||||
if entities:
|
||||
async_add_entities(entities, True)
|
||||
async_add_entities(entities)
|
||||
|
||||
gateway.listeners.append(
|
||||
async_dispatcher_connect(
|
||||
|
||||
@@ -53,7 +53,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
|
||||
entities.append(DeconzLight(light, gateway))
|
||||
|
||||
if entities:
|
||||
async_add_entities(entities, True)
|
||||
async_add_entities(entities)
|
||||
|
||||
gateway.listeners.append(
|
||||
async_dispatcher_connect(
|
||||
@@ -79,7 +79,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
|
||||
entities.append(new_group)
|
||||
|
||||
if entities:
|
||||
async_add_entities(entities, True)
|
||||
async_add_entities(entities)
|
||||
|
||||
gateway.listeners.append(
|
||||
async_dispatcher_connect(
|
||||
|
||||
@@ -27,7 +27,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
|
||||
entities.append(DeconzLock(light, gateway))
|
||||
|
||||
if entities:
|
||||
async_add_entities(entities, True)
|
||||
async_add_entities(entities)
|
||||
|
||||
gateway.listeners.append(
|
||||
async_dispatcher_connect(
|
||||
|
||||
@@ -109,7 +109,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
|
||||
entities.append(DeconzSensor(sensor, gateway))
|
||||
|
||||
if entities:
|
||||
async_add_entities(entities, True)
|
||||
async_add_entities(entities)
|
||||
|
||||
gateway.listeners.append(
|
||||
async_dispatcher_connect(
|
||||
|
||||
@@ -35,7 +35,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
|
||||
entities.append(DeconzSiren(light, gateway))
|
||||
|
||||
if entities:
|
||||
async_add_entities(entities, True)
|
||||
async_add_entities(entities)
|
||||
|
||||
gateway.listeners.append(
|
||||
async_dispatcher_connect(
|
||||
|
||||
Reference in new issue
Block a user