From 3f9385c5b8e02dba27357cb8ac9ed0ed06fc5852 Mon Sep 17 00:00:00 2001 From: caiosweet <24454580+caiosweet@users.noreply.github.com> Date: Thu, 16 Feb 2023 07:51:54 +0100 Subject: [PATCH] migrate INGV to use async_forward_entry_setups Fixed #22 --- custom_components/ingv_centro_nazionale_terremoti/__init__.py | 2 +- hacs.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/ingv_centro_nazionale_terremoti/__init__.py b/custom_components/ingv_centro_nazionale_terremoti/__init__.py index 4d5ac23..dd2eff6 100755 --- a/custom_components/ingv_centro_nazionale_terremoti/__init__.py +++ b/custom_components/ingv_centro_nazionale_terremoti/__init__.py @@ -87,7 +87,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: _LOGGER.debug("Feed entity coordinator added for %s", entry.entry_id) async_cleanup_entity_registry(hass=hass, entry=entry) - hass.config_entries.async_setup_platforms(entry, PLATFORMS) + await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS) entry.async_on_unload(entry.add_update_listener(async_reload_entry)) return True diff --git a/hacs.json b/hacs.json index 301b4a2..c057cb0 100644 --- a/hacs.json +++ b/hacs.json @@ -4,5 +4,5 @@ "filename": "ingv_centro_nazionale_terremoti.zip", "country": ["IT"], "render_readme": true, - "homeassistant": "2022.11.0" + "homeassistant": "2023.02.0" }