v0.9.0
This commit is contained in:
@@ -91,6 +91,9 @@ pub fn finish_temporary_quick_thermostat(zone: &mut Zone, schedules: &[Schedule]
|
||||
}
|
||||
}
|
||||
refresh_zone_runtime_target(zone, schedules, house_mode);
|
||||
// The temporary session has ended and ownership/intent changes again. A cancellation
|
||||
// that belonged to the temporary intent must not suppress the restored thermostat state.
|
||||
rearm_compressor_queue(zone);
|
||||
true
|
||||
}
|
||||
|
||||
@@ -221,6 +224,11 @@ async fn activate_due_temporary_quick_thermostats(
|
||||
continue;
|
||||
}
|
||||
|
||||
// A scheduled temporary session becoming active is a new explicit thermostat intent.
|
||||
// Replace any older cancelled/pending compressor task so this session can queue its
|
||||
// own start or mode change against the current protection window.
|
||||
rearm_compressor_queue(zone);
|
||||
|
||||
// Temporary ownership is independent from the ordinary local hand-back state.
|
||||
zone.local_thermostat_power = Some(true);
|
||||
zone.local_thermostat_resume_at = None;
|
||||
|
||||
Reference in New Issue
Block a user