Make deCONZ utilise forward_entry_setups (#74823)
parent
7cac1ae6a3
commit
2cc9db5468
|
@ -46,12 +46,12 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> b
|
||||||
gateway = hass.data[DOMAIN][config_entry.entry_id] = DeconzGateway(
|
gateway = hass.data[DOMAIN][config_entry.entry_id] = DeconzGateway(
|
||||||
hass, config_entry, api
|
hass, config_entry, api
|
||||||
)
|
)
|
||||||
|
await gateway.async_update_device_registry()
|
||||||
|
|
||||||
config_entry.add_update_listener(gateway.async_config_entry_updated)
|
config_entry.add_update_listener(gateway.async_config_entry_updated)
|
||||||
hass.config_entries.async_setup_platforms(config_entry, PLATFORMS)
|
|
||||||
|
|
||||||
await async_setup_events(gateway)
|
await async_setup_events(gateway)
|
||||||
await gateway.async_update_device_registry()
|
await hass.config_entries.async_forward_entry_setups(config_entry, PLATFORMS)
|
||||||
|
|
||||||
if len(hass.data[DOMAIN]) == 1:
|
if len(hass.data[DOMAIN]) == 1:
|
||||||
async_setup_services(hass)
|
async_setup_services(hass)
|
||||||
|
|
Loading…
Reference in New Issue