diff --git a/app/auto/config.py b/app/auto/config.py index 285fcf9..f7e546b 100644 --- a/app/auto/config.py +++ b/app/auto/config.py @@ -23,6 +23,12 @@ class Co2Config: ... ] +@dataclass( + frozen=True, + slots=True, +) +class TemperatureConfig: + hysteresis: float @dataclass( frozen=True, @@ -34,13 +40,6 @@ class AutoConfig: co2: Co2Config temperature: TemperatureConfig -@dataclass( - frozen=True, - slots=True, -) -class TemperatureConfig: - hysteresis: float - def _require_dict(name: str, value: Any) -> dict: diff --git a/requirements.txt b/requirements.txt index 2cd36a9..e6d0489 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,4 +2,5 @@ tion-btle==3.3.6 fastapi uvicorn[standard] PyYAML -paho-mqtt>=2.1,<3 \ No newline at end of file +paho-mqtt>=2.1,<3 +paho-mqtt \ No newline at end of file