From cc19bbb566359bca38639e954713c02b1f01ac06 Mon Sep 17 00:00:00 2001 From: Sanjay Govind Date: Wed, 1 Jan 2025 16:51:32 +1300 Subject: [PATCH] Migrate async_forward_entry_setup to async_forward_entry_setups (#326) --- custom_components/tplink_deco/__init__.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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)