mirror of https://github.com/home-assistant/core
33 lines
817 B
Python
33 lines
817 B
Python
"""Models for eq3btsmart integration."""
|
|
|
|
from dataclasses import dataclass
|
|
|
|
from eq3btsmart.thermostat import Thermostat
|
|
|
|
from .const import (
|
|
DEFAULT_CURRENT_TEMP_SELECTOR,
|
|
DEFAULT_SCAN_INTERVAL,
|
|
DEFAULT_TARGET_TEMP_SELECTOR,
|
|
CurrentTemperatureSelector,
|
|
TargetTemperatureSelector,
|
|
)
|
|
|
|
|
|
@dataclass(slots=True)
|
|
class Eq3Config:
|
|
"""Config for a single eQ-3 device."""
|
|
|
|
mac_address: str
|
|
current_temp_selector: CurrentTemperatureSelector = DEFAULT_CURRENT_TEMP_SELECTOR
|
|
target_temp_selector: TargetTemperatureSelector = DEFAULT_TARGET_TEMP_SELECTOR
|
|
external_temp_sensor: str = ""
|
|
scan_interval: int = DEFAULT_SCAN_INTERVAL
|
|
|
|
|
|
@dataclass(slots=True)
|
|
class Eq3ConfigEntryData:
|
|
"""Config entry for a single eQ-3 device."""
|
|
|
|
eq3_config: Eq3Config
|
|
thermostat: Thermostat
|