189 files

This commit is contained in:
Home Assistant Version Control
2026-09-08 18:05:32 +00:00
parent 79fefc0a7c
commit 303886f212
189 changed files with 21402 additions and 3514 deletions
@@ -371,6 +371,12 @@ class RuntimeTrigger(BaseTrigger):
"""Reset accumulated runtime (called after maintenance completion)."""
super().reset()
self._accumulated_seconds = 0.0
# A fresh start is a fresh session for the #149 cap too: the session
# that ran up to the completion has been booked (and cleared), the
# one starting now may book the cap again. Leaving the old booking in
# place froze a still-ON entity at zero until it next turned off
# (bug review 2026-09-04).
self._session_booked = 0.0
# If entity is currently ON, keep tracking from now (fresh start)
if self._on_since_dt is not None:
now = dt_util.utcnow()