From f0f5c1af8cfe28c43828452a705c33c4c68d2225 Mon Sep 17 00:00:00 2001 From: Chris <1105672+firstof9@users.noreply.github.com> Date: Thu, 27 Jun 2024 11:19:52 -0700 Subject: [PATCH] fix: switch to `async_forward_entry_setups` for HA 2024.7.x+ (#378) --- custom_components/keymaster/__init__.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/custom_components/keymaster/__init__.py b/custom_components/keymaster/__init__.py index c8342c6b..e1a6fb20 100644 --- a/custom_components/keymaster/__init__.py +++ b/custom_components/keymaster/__init__.py @@ -255,10 +255,7 @@ def _generate_package(service: ServiceCall) -> None: config_entry.data[CONF_START], ) - for platform in PLATFORMS: - hass.async_create_task( - hass.config_entries.async_forward_entry_setup(config_entry, platform) - ) + await hass.config_entries.async_forward_entry_setups(config_entry, PLATFORMS) # if the use turned on the bool generate the files if should_generate_package: