1 """Coordinator for the vizio component."""
3 from __future__
import annotations
5 from datetime
import timedelta
9 from pyvizio.const
import APPS
10 from pyvizio.util
import gen_apps_list_from_url
17 from .const
import DOMAIN
19 _LOGGER = logging.getLogger(__name__)
23 """Define an object to hold Vizio app config data."""
25 def __init__(self, hass: HomeAssistant, store: Store[list[dict[str, Any]]]) ->
None:
38 """Refresh data for the first time when a config entry is setup."""
42 """Update data via library."""
43 if data := await gen_apps_list_from_url(
59 "Unable to retrieve the apps list from the external server for the "
None __init__(self, HomeAssistant hass, Store[list[dict[str, Any]]] store)
list[dict[str, Any]] _async_update_data(self)
aiohttp.ClientSession async_get_clientsession(HomeAssistant hass, bool verify_ssl=True, socket.AddressFamily family=socket.AF_UNSPEC, ssl_util.SSLCipherList ssl_cipher=ssl_util.SSLCipherList.PYTHON_DEFAULT)
None async_load(HomeAssistant hass)
None async_save(self, _T data)