Improve deCONZ signal strings (#57140)
This commit is contained in:
parent
2ba8e1030c
commit
750dd9186e
15 changed files with 72 additions and 71 deletions
|
@ -37,7 +37,7 @@ from homeassistant.core import callback
|
|||
from homeassistant.helpers.dispatcher import async_dispatcher_connect
|
||||
from homeassistant.util.color import color_hs_to_xy
|
||||
|
||||
from .const import DOMAIN as DECONZ_DOMAIN, NEW_GROUP, NEW_LIGHT, POWER_PLUGS
|
||||
from .const import DOMAIN as DECONZ_DOMAIN, POWER_PLUGS
|
||||
from .deconz_device import DeconzDevice
|
||||
from .gateway import get_gateway_from_config_entry
|
||||
|
||||
|
@ -69,7 +69,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_light
|
||||
hass,
|
||||
gateway.signal_new_light,
|
||||
async_add_light,
|
||||
)
|
||||
)
|
||||
|
||||
|
@ -95,7 +97,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_GROUP), async_add_group
|
||||
hass,
|
||||
gateway.signal_new_group,
|
||||
async_add_group,
|
||||
)
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue