mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 00:37:53 +00:00
Use coordinator async_setup in vizio (#129450)
This commit is contained in:
parent
91157c21ef
commit
ca0be3ec8a
@ -34,10 +34,9 @@ class VizioAppsDataUpdateCoordinator(DataUpdateCoordinator[list[dict[str, Any]]]
|
||||
self.fail_threshold = 10
|
||||
self.store = store
|
||||
|
||||
async def async_config_entry_first_refresh(self) -> None:
|
||||
async def _async_setup(self) -> None:
|
||||
"""Refresh data for the first time when a config entry is setup."""
|
||||
self.data = await self.store.async_load() or APPS
|
||||
await super().async_config_entry_first_refresh()
|
||||
|
||||
async def _async_update_data(self) -> list[dict[str, Any]]:
|
||||
"""Update data via library."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user