Skip to content

Commit 0cd2e8d

Browse files
Replace current async_setup_platforms function with async_forward_entry_setups, which will prevent the integration failing to start in Home Assistant 2023.3+
1 parent 3788e7a commit 0cd2e8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom_components/solarman/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
1616
"""Set up Solarman Collector from a config entry."""
1717
_LOGGER.debug(f'__init__.py:async_setup_entry({entry.as_dict()})')
18-
hass.config_entries.async_setup_platforms(entry, PLATFORMS)
18+
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
1919
entry.async_on_unload(entry.add_update_listener(update_listener))
2020
return True
2121

0 commit comments

Comments
 (0)