Create async_config_entry_first_refresh to reduce coordinator boilerplate (#48451)
This commit is contained in:
parent
569c536a8e
commit
a851bff95a
57 changed files with 181 additions and 225 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue