Use coordinator async_setup in vizio (#129450)

This commit is contained in:
G Johansson 2024-11-04 19:16:22 +01:00 committed by GitHub
parent 91157c21ef
commit ca0be3ec8a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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."""