From e18b503713aa1fcc180a4f4ad082d9f1d456198a Mon Sep 17 00:00:00 2001 From: myTselection Date: Thu, 18 Jul 2024 20:47:11 +0200 Subject: [PATCH] 2.4.3 fix await async_forward_entry_setups --- custom_components/myenergy/__init__.py | 2 +- custom_components/myenergy/manifest.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/myenergy/__init__.py b/custom_components/myenergy/__init__.py index d454f2d..c513130 100644 --- a/custom_components/myenergy/__init__.py +++ b/custom_components/myenergy/__init__.py @@ -71,7 +71,7 @@ async def async_unload_entry(hass: HomeAssistant, config_entry: ConfigEntry): async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> bool: """Set up component as config entry.""" - await hass.config_entries.async_forward_entry_setup(config_entry, Platform.SENSOR) + await hass.config_entries.async_forward_entry_setups(config_entry, PLATFORMS) config_entry.async_on_unload(config_entry.add_update_listener(update_listener)) # _LOGGER.info(f"{DOMAIN} register_services") diff --git a/custom_components/myenergy/manifest.json b/custom_components/myenergy/manifest.json index 4dfacd9..69f917a 100644 --- a/custom_components/myenergy/manifest.json +++ b/custom_components/myenergy/manifest.json @@ -9,5 +9,5 @@ "iot_class": "cloud_polling", "issue_tracker": "https://github.com/myTselection/MyEnergy/issues", "requirements": ["bs4","requests"], - "version": "2.4.2" + "version": "2.4.3" }