1 """SFR Box coordinator."""
3 from collections.abc
import Callable, Coroutine
4 from datetime
import timedelta
8 from sfrbox_api.bridge
import SFRBox
9 from sfrbox_api.exceptions
import SFRBoxError
14 _LOGGER = logging.getLogger(__name__)
19 """Coordinator to manage data updates."""
26 method: Callable[[SFRBox], Coroutine[Any, Any, _DataT |
None]],
28 """Initialize coordinator."""
31 super().
__init__(hass, _LOGGER, name=name, update_interval=_SCAN_INTERVAL)
37 except SFRBoxError
as err:
38 raise UpdateFailed
from err
None __init__(self, HomeAssistant hass, SFRBox box, str name, Callable[[SFRBox], Coroutine[Any, Any, _DataT|None]] method)
_DataT|None _async_update_data(self)