Fix shadow observer lifecycle, learning and prediction correctness

This commit is contained in:
buzera committed 2026-10-26 17:50:20 +02:00
1 parent 2b9a10979b
commit c434f3995d
10 files changed
+594 -33

No files matched your search

@@ -44,6 +44,8 @@ def normalize(metric: str, raw: object, unit: str | None = None) -> float | None
return None
if not isfinite(value):
return None
if unit is not None and not isinstance(unit, str):
return None
unit = (unit or "").strip().lower().replace(" ", "")
if metric in ("temperature", "feels_like"):
if unit in ("°f", "f", "fahrenheit"):