Replies: 1 comment
|
Hello, yes you are right. I turn this into an issue. Thank you for your report. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
TL;DR
Timed presets (like Boost) currently remain active indefinitely after a restart because the manager does not implement a restoration hook. Adding a restore_state method allows the manager to re-populate its internal timer from existing entity attributes and resume the countdown.
While BaseThermostat.get_my_previous_state (line 475) correctly iterates through all feature managers to call manager.restore_state(old_state), this method is currently missing from FeatureTimedPresetManager.py.
Consequently, the _timed_preset_end_time and the async_track_point_in_time task are lost during a Home Assistant restart. Since the timer is never rescheduled, the thermostat remains "stuck" in the temporary preset.
By implementing the restore_state method in FeatureTimedPresetManager.py, we can re-populate the manager's state using the data already persisted in the entity attributes.
This gives us:
All reactions