From af4a7456f4fb276737ad5bdb59dd4a55590e5cf1 Mon Sep 17 00:00:00 2001 From: gvigroux Date: Fri, 6 Sep 2024 19:31:07 +0200 Subject: [PATCH] remove deprecated function --- custom_components/hon/__init__.py | 9 +++++---- custom_components/hon/manifest.json | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/custom_components/hon/__init__.py b/custom_components/hon/__init__.py index c99ecda..5b71ee7 100644 --- a/custom_components/hon/__init__.py +++ b/custom_components/hon/__init__.py @@ -73,11 +73,12 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry): await coordinator.device.load_commands() await coordinator.device.load_statistics() + await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS) - for platform in PLATFORMS: - hass.async_create_task( - hass.config_entries.async_forward_entry_setup(entry, platform) - ) + #for platform in PLATFORMS: + # hass.async_create_task( + # hass.config_entries.async_forward_entry_setup(entry, platform) + # ) diff --git a/custom_components/hon/manifest.json b/custom_components/hon/manifest.json index a7b12e0..2686db2 100755 --- a/custom_components/hon/manifest.json +++ b/custom_components/hon/manifest.json @@ -6,5 +6,5 @@ "documentation": "https://github.com/gvigroux/hon", "iot_class": "cloud_polling", "issue_tracker": "https://github.com/gvigroux/hon/issues", - "version": "0.7.4" + "version": "0.7.5" }