diff --git a/custom_components/remote_homeassistant/__init__.py b/custom_components/remote_homeassistant/__init__.py index c83d79f..ff526c9 100644 --- a/custom_components/remote_homeassistant/__init__.py +++ b/custom_components/remote_homeassistant/__init__.py @@ -257,12 +257,7 @@ async def setup_components_and_platforms(): for domain in entry.options.get(CONF_LOAD_COMPONENTS, []): hass.async_create_task(async_setup_component(hass, domain, {})) - await asyncio.gather( - *[ - hass.config_entries.async_forward_entry_setup(entry, platform) - for platform in PLATFORMS - ] - ) + await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS) await remote.async_connect() hass.async_create_task(setup_components_and_platforms())