1 """Coordinator for the mill component."""
3 from __future__
import annotations
5 from datetime
import timedelta
9 from mill_local
import Mill
as MillLocal
14 from .const
import DOMAIN
16 _LOGGER = logging.getLogger(__name__)
20 """Class to manage fetching Mill data."""
25 update_interval: timedelta |
None =
None,
27 mill_data_connection: Mill | MillLocal,
29 """Initialize global Mill data updater."""
36 update_method=mill_data_connection.fetch_heater_and_sensor_data,
37 update_interval=update_interval,
None __init__(self, HomeAssistant hass, timedelta|None update_interval=None, *Mill|MillLocal mill_data_connection)