mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 19:09:32 +00:00
Improve deCONZ signal strings (#57140)
This commit is contained in:
@@ -26,7 +26,7 @@ from homeassistant.const import ATTR_TEMPERATURE
|
||||
from homeassistant.core import callback
|
||||
from homeassistant.helpers.dispatcher import async_dispatcher_connect
|
||||
|
||||
from .const import ATTR_DARK, ATTR_ON, NEW_SENSOR
|
||||
from .const import ATTR_DARK, ATTR_ON
|
||||
from .deconz_device import DeconzDevice
|
||||
from .gateway import get_gateway_from_config_entry
|
||||
|
||||
@@ -105,7 +105,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_SENSOR), async_add_sensor
|
||||
hass,
|
||||
gateway.signal_new_sensor,
|
||||
async_add_sensor,
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user