diff --git a/custom_components/tplink_deco/__init__.py b/custom_components/tplink_deco/__init__.py index e91acbd..53a76bb 100644 --- a/custom_components/tplink_deco/__init__.py +++ b/custom_components/tplink_deco/__init__.py @@ -162,10 +162,9 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry): hass.data[DOMAIN][config_entry.entry_id] = data deco_coordinator = data[COORDINATOR_DECOS_KEY] - for platform in PLATFORMS: - config_entry.async_create_task( - hass, hass.config_entries.async_forward_entry_setup(config_entry, platform) - ) + hass.async_create_task( + hass.config_entries.async_forward_entry_setups(config_entry, PLATFORMS) + ) async def async_reboot_deco(service: ServiceCall) -> None: dr = device_registry.async_get(hass=hass)