diff --git a/custom_components/thermia/__init__.py b/custom_components/thermia/__init__.py index 09d4a74..edf0da8 100644 --- a/custom_components/thermia/__init__.py +++ b/custom_components/thermia/__init__.py @@ -45,10 +45,7 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry): hass.data[DOMAIN][config_entry.entry_id] = coordinator - for component in PLATFORMS: - hass.async_create_task( - hass.config_entries.async_forward_entry_setup(config_entry, component) - ) + await hass.config_entries.async_forward_entry_setups(config_entry, PLATFORMS) config_entry.async_on_unload(config_entry.add_update_listener(async_reload_entry)) return True