1 """Coordinator for the Modern Forms integration."""
3 from __future__
import annotations
5 from datetime
import timedelta
8 from aiomodernforms
import ModernFormsDevice, ModernFormsError
9 from aiomodernforms.models
import Device
as ModernFormsDeviceState
15 from .const
import DOMAIN
18 _LOGGER = logging.getLogger(__name__)
22 """Class to manage fetching Modern Forms data from single endpoint."""
30 """Initialize global Modern Forms data updater."""
39 update_interval=SCAN_INTERVAL,
43 """Fetch data from Modern Forms."""
48 except ModernFormsError
as error:
49 raise UpdateFailed(f
"Invalid response from API: {error}")
from error
IssData update(pyiss.ISS iss)
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)