patch: v1.1.1 исправил порядок объявления классов в app/auto/config TemperatureConfig объявлялся после AutoConfig в котором использовался.

This commit is contained in:
Fedorov Dmitriy
2026-09-19 23:04:52 +03:00
parent a5c9d07db5
commit 3cd71ba5ff
2 changed files with 8 additions and 8 deletions
+6 -7
View File
@@ -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:
+1
View File
@@ -3,3 +3,4 @@ fastapi
uvicorn[standard]
PyYAML
paho-mqtt>=2.1,<3
paho-mqtt