v0.7.12-hotfix

This commit is contained in:
Mateusz Gruszczyński
2026-08-27 18:41:18 +02:00
parent 62514258d3
commit 8141838ec1
8 changed files with 107 additions and 25 deletions
+1 -6
View File
@@ -622,12 +622,7 @@ async fn apply_zone_control_patch(state: &AppState, id: &str, patch: ZoneControl
engine::reset_local_thermostat_override(&mut zone);
}
if let Some(power) = patch.power {
zone.local_thermostat_power = Some(power);
zone.local_thermostat_resume_at = if power {
None
} else {
Some(Utc::now() + chrono::Duration::minutes(engine::LOCAL_THERMOSTAT_RESUME_DELAY_MINUTES))
};
engine::set_local_thermostat_power(&mut zone, power, Utc::now());
if power { zone.enabled = true; }
// A manually started local thermostat keeps an already selected target/profile until
// it is switched off and the delayed hand-back completes, Auto is selected, or the