v0.7.12-hotfix
This commit is contained in:
+1
-6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user