diff --git a/custom_components/apex/__init__.py b/custom_components/apex/__init__.py index 3dd08e1..de809dc 100644 --- a/custom_components/apex/__init__.py +++ b/custom_components/apex/__init__.py @@ -59,10 +59,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry): hass.data[DOMAIN][entry.entry_id] = coordinator - for component in PLATFORMS: - hass.async_create_task( - hass.config_entries.async_forward_entry_setup(entry, component) - ) + await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS) async def async_set_options_service(service_call): await hass.async_add_executor_job(set_output, hass, service_call, coordinator)