mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 08:17:08 +00:00
Cleanup update_listener in deconz (#136416)
This commit is contained in:
parent
891485f306
commit
829fab5371
@ -46,7 +46,9 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> b
|
|||||||
hub = hass.data[DOMAIN][config_entry.entry_id] = DeconzHub(hass, config_entry, api)
|
hub = hass.data[DOMAIN][config_entry.entry_id] = DeconzHub(hass, config_entry, api)
|
||||||
await hub.async_update_device_registry()
|
await hub.async_update_device_registry()
|
||||||
|
|
||||||
|
config_entry.async_on_unload(
|
||||||
config_entry.add_update_listener(hub.async_config_entry_updated)
|
config_entry.add_update_listener(hub.async_config_entry_updated)
|
||||||
|
)
|
||||||
|
|
||||||
await async_setup_events(hub)
|
await async_setup_events(hub)
|
||||||
await hass.config_entries.async_forward_entry_setups(config_entry, PLATFORMS)
|
await hass.config_entries.async_forward_entry_setups(config_entry, PLATFORMS)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user