From f049ac1ae7bb0bde20f8723bd5db3abc1433ad53 Mon Sep 17 00:00:00 2001 From: Jay Date: Fri, 5 Jul 2024 11:16:11 -0500 Subject: [PATCH] Fix async_forward_entry_setup deprecation --- custom_components/remote_homeassistant/__init__.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/custom_components/remote_homeassistant/__init__.py b/custom_components/remote_homeassistant/__init__.py index c83d79f..ff526c9 100644 --- a/custom_components/remote_homeassistant/__init__.py +++ b/custom_components/remote_homeassistant/__init__.py @@ -257,12 +257,7 @@ async def setup_components_and_platforms(): for domain in entry.options.get(CONF_LOAD_COMPONENTS, []): hass.async_create_task(async_setup_component(hass, domain, {})) - await asyncio.gather( - *[ - hass.config_entries.async_forward_entry_setup(entry, platform) - for platform in PLATFORMS - ] - ) + await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS) await remote.async_connect() hass.async_create_task(setup_components_and_platforms())