Improve deCONZ signal strings (#57140)
This commit is contained in:
parent
2ba8e1030c
commit
750dd9186e
15 changed files with 72 additions and 71 deletions
|
@ -7,7 +7,6 @@ from homeassistant.components.lock import DOMAIN, LockEntity
|
|||
from homeassistant.core import callback
|
||||
from homeassistant.helpers.dispatcher import async_dispatcher_connect
|
||||
|
||||
from .const import NEW_LIGHT, NEW_SENSOR
|
||||
from .deconz_device import DeconzDevice
|
||||
from .gateway import get_gateway_from_config_entry
|
||||
|
||||
|
@ -35,7 +34,9 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
|
|||
|
||||
config_entry.async_on_unload(
|
||||
async_dispatcher_connect(
|
||||
hass, gateway.async_signal_new_device(NEW_LIGHT), async_add_lock_from_light
|
||||
hass,
|
||||
gateway.signal_new_light,
|
||||
async_add_lock_from_light,
|
||||
)
|
||||
)
|
||||
|
||||
|
@ -58,7 +59,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
|
|||
config_entry.async_on_unload(
|
||||
async_dispatcher_connect(
|
||||
hass,
|
||||
gateway.async_signal_new_device(NEW_SENSOR),
|
||||
gateway.signal_new_sensor,
|
||||
async_add_lock_from_sensor,
|
||||
)
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue