v0.9.4-fix
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user