diff --git a/homeassistant/components/deconz/__init__.py b/homeassistant/components/deconz/__init__.py index 112f29db333..cb4715f3c28 100644 --- a/homeassistant/components/deconz/__init__.py +++ b/homeassistant/components/deconz/__init__.py @@ -46,12 +46,12 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> b gateway = hass.data[DOMAIN][config_entry.entry_id] = DeconzGateway( hass, config_entry, api ) + await gateway.async_update_device_registry() 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 gateway.async_update_device_registry() + await hass.config_entries.async_forward_entry_setups(config_entry, PLATFORMS) if len(hass.data[DOMAIN]) == 1: async_setup_services(hass)