From 0cd2e8d0f98133682522a7e622e29373b5410227 Mon Sep 17 00:00:00 2001 From: Stephan Joubert Date: Sat, 11 Feb 2023 11:59:33 +0200 Subject: [PATCH] Replace current async_setup_platforms function with async_forward_entry_setups, which will prevent the integration failing to start in Home Assistant 2023.3+ --- custom_components/solarman/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/solarman/__init__.py b/custom_components/solarman/__init__.py index d6a7691..05ecac5 100644 --- a/custom_components/solarman/__init__.py +++ b/custom_components/solarman/__init__.py @@ -15,7 +15,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: """Set up Solarman Collector from a config entry.""" _LOGGER.debug(f'__init__.py:async_setup_entry({entry.as_dict()})') - 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(update_listener)) return True