fix: async entry setup (#1141)

* Update __init__.py

* Update strings.json
This commit is contained in:
Daniel 2025-01-01 14:19:31 -08:00 committed by GitHub
commit bf7d109c98
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -65,10 +65,7 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry):
undo_listener = config_entry.add_update_listener(async_update_options)
data[config_entry.entry_id] = {UNDO_UPDATE_LISTENER: undo_listener}
for platform in PLATFORMS:
hass.async_create_task(
hass.config_entries.async_forward_entry_setup(config_entry, platform),
)
await hass.config_entries.async_forward_entry_setups(config_entry, PLATFORMS)
return True