This commit is contained in:
Bas Nijholt 2024-08-25 16:35:50 -07:00
commit 7372cb2551

View file

@ -65,11 +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