v0.9.4-fix

This commit is contained in:
Mateusz Gruszczyński
2026-09-01 14:59:00 +02:00
parent 3c490b3064
commit 150cf6cb7f
13 changed files with 285 additions and 62 deletions
+7 -1
View File
@@ -23,7 +23,13 @@ pub fn refresh_control_ownership(zone: &mut Zone, _house_power_enabled: bool) {
};
("local_thermostat", source, resume_at, reason)
} else {
let source = if zone.control_source.starts_with("group:") { zone.control_source.clone() } else { "automation".into() };
let source = if zone.control_source.starts_with("group:")
|| matches!(zone.control_source.as_str(), "automation.device" | "house_power")
{
zone.control_source.clone()
} else {
"automation".into()
};
("automation", source, zone.manual_override_until, "Automatic thermostat/schedule control".to_string())
};
if zone.control_owner != owner || zone.control_source != source {