Wait for config entry platform forwards (#73806)

This commit is contained in:
J. Nick Koston 2022-07-09 10:27:42 -05:00 committed by GitHub
parent 3a5cca3ff2
commit cd03c49fc2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
386 changed files with 528 additions and 557 deletions

View file

@ -44,7 +44,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
async_cleanup_device_registry(hass=hass, entry=entry)
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(async_reload_entry))
return True