diff --git a/custom_components/shopping_list_with_grocy/__init__.py b/custom_components/shopping_list_with_grocy/__init__.py index 523bfb0..ad8f563 100644 --- a/custom_components/shopping_list_with_grocy/__init__.py +++ b/custom_components/shopping_list_with_grocy/__init__.py @@ -66,10 +66,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry): if DOMAIN not in hass.data: hass.data[DOMAIN] = {} - for platform in PLATFORMS: - hass.async_create_task( - hass.config_entries.async_forward_entry_setup(entry, platform) - ) + await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS) async_setup_services(hass)