Create async_config_entry_first_refresh to reduce coordinator boilerplate (#48451)

This commit is contained in:
J. Nick Koston 2021-03-29 12:51:39 -10:00 committed by GitHub
parent 569c536a8e
commit a851bff95a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
57 changed files with 181 additions and 225 deletions

View file

@ -97,7 +97,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
update_method=async_update,
)
await coordinator.async_refresh()
await coordinator.async_config_entry_first_refresh()
for platform in PLATFORMS:
hass.async_create_task(