Fix CI timezone and fresh settings initialization
CI / Frontend build (push) Successful in 12s
CI / Backend tests (push) Failing after 15s
CI / Script syntax (push) Successful in 3s

This commit is contained in:
Codex
2026-07-15 01:13:29 +02:00
parent f5997b47d9
commit 88e6d042cd
4 changed files with 90 additions and 17 deletions
+1 -1
View File
@@ -129,7 +129,7 @@ def discover():
def _validate_settings(payload: dict) -> None:
try:
ZoneInfo(payload.get("timezone") or "UTC")
except ZoneInfoNotFoundError as exc:
except (ValueError, ZoneInfoNotFoundError) as exc:
raise HTTPException(400, "Timezone must be a valid IANA timezone, for example Europe/Berlin or UTC") from exc
if payload.get("setup_complete"):
missing = [