From d681a5a57f66c7538210a2db8e037985f9f512ea Mon Sep 17 00:00:00 2001 From: Doug Larrick Date: Sat, 20 Jul 2024 10:56:14 -0400 Subject: [PATCH] Fix deprecation warnings around async_forward_entry_setup Bump supported Home Assistant version --- custom_components/kumo/__init__.py | 4 +--- custom_components/kumo/manifest.json | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/custom_components/kumo/__init__.py b/custom_components/kumo/__init__.py index 4190277..55d7f4e 100644 --- a/custom_components/kumo/__init__.py +++ b/custom_components/kumo/__init__.py @@ -99,9 +99,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry): if device.get_serial() not in coordinators: coordinators[device.get_serial()] = KumoDataUpdateCoordinator(hass, device) - for platform in PLATFORMS: - hass.async_create_task( - hass.config_entries.async_forward_entry_setup(entry, platform)) + await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS) return True _LOGGER.warning("Could not load config from KumoCloud server or cache") diff --git a/custom_components/kumo/manifest.json b/custom_components/kumo/manifest.json index 427f59d..03ef615 100755 --- a/custom_components/kumo/manifest.json +++ b/custom_components/kumo/manifest.json @@ -7,8 +7,8 @@ "dependencies": [], "codeowners": [ "@dlarrick" ], "requirements": ["pykumo==0.3.9"], - "version": "0.3.12", - "homeassistant": "2021.12.0", + "version": "0.3.13", + "homeassistant": "2024.1.0", "iot_class": "local_polling", "integration_type": "hub" }