From 2cc9db5468d2ae41084b4d177152c200bc0f6ffe Mon Sep 17 00:00:00 2001 From: Robert Svensson Date: Sat, 9 Jul 2022 20:30:48 +0200 Subject: [PATCH] Make deCONZ utilise forward_entry_setups (#74823) --- homeassistant/components/deconz/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)