This commit is contained in:
Mateusz Gruszczyński committed 2026-09-16 12:51:06 +02:00
1 parent 0bd33958da
commit d0ae3d0f6a
22 files changed
+208 -128

No files matched your search

+3 -2
View File
@@ -49,9 +49,10 @@ fn public_settings(settings: &RuntimeSettings) -> Value {
"history_threshold_days": settings.influxdb.history_threshold_days,
},
"home_assistant": {
"url": settings.home_assistant.url,
"url": home_assistant::effective_url(&settings.home_assistant),
"auth_mode": home_assistant::auth_mode(),
"token": "",
"token_configured": !settings.home_assistant.token.trim().is_empty(),
"token_configured": home_assistant::token_configured(&settings.home_assistant),
"outdoor_entity_id": settings.home_assistant.outdoor_entity_id,
"sensor_stale_after_seconds": settings.home_assistant.sensor_stale_after_seconds,
"allow_invalid_tls": settings.home_assistant.allow_invalid_tls,