Migrate ambient_station to use async_forward_entry_setups (#86555)

This commit is contained in:
J. Nick Koston 2023-01-24 09:33:17 -10:00 committed by GitHub
parent b3c5c6ae9c
commit c599d1e1f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -179,7 +179,11 @@ class AmbientStation:
# attempt forward setup of the config entry (because it will have
# already been done):
if not self._entry_setup_complete:
self._hass.config_entries.async_setup_platforms(self._entry, PLATFORMS)
self._hass.async_create_task(
self._hass.config_entries.async_forward_entry_setups(
self._entry, PLATFORMS
)
)
self._entry_setup_complete = True
self._ws_reconnect_delay = DEFAULT_SOCKET_MIN_RETRY