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
|
@ -66,7 +66,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
|
|||
|
||||
device_data = defaultdict(list)
|
||||
|
||||
await coordinator.async_refresh()
|
||||
await coordinator.async_config_entry_first_refresh()
|
||||
|
||||
for circuit in coordinator.data["circuits"]:
|
||||
device_data["switch"].append(circuit)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue