1 """Coordinator for Brother integration."""
3 from asyncio
import timeout
6 from brother
import Brother, BrotherSensors, SnmpError, UnsupportedModelError
11 from .const
import DOMAIN, UPDATE_INTERVAL
13 _LOGGER = logging.getLogger(__name__)
17 """Class to manage fetching Brother data from the printer."""
19 def __init__(self, hass: HomeAssistant, brother: Brother) ->
None:
27 update_interval=UPDATE_INTERVAL,
31 """Update data via library."""
33 async
with timeout(20):
35 except (ConnectionError, SnmpError, UnsupportedModelError)
as error:
BrotherSensors _async_update_data(self)
None __init__(self, HomeAssistant hass, Brother brother)