updated apps

This commit is contained in:
2026-07-14 23:57:03 -04:00
parent 6cc7212cef
commit 010e828e9c
797 changed files with 45153 additions and 4246 deletions
@@ -170,9 +170,11 @@ class MaintenanceTask:
if not self.schedule_time:
return False
try:
hh, mm = self.schedule_time.split(":", 1)
target = time(int(hh), int(mm))
except (ValueError, TypeError):
# Tolerate both "HH:MM" (panel/WS) and "HH:MM:SS" (HA TimeSelector
# in the config-flow) — take the first two components.
parts = str(self.schedule_time).split(":")
target = time(int(parts[0]), int(parts[1]))
except (ValueError, TypeError, IndexError):
return False
return dt_util.now().time() >= target
@@ -384,6 +386,10 @@ class MaintenanceTask:
# Move last_performed to today to restart the cycle
self.last_performed = dt_util.now().date().isoformat()
self._trigger_active = False
# A postponed occurrence is consumed by skipping it too — otherwise the
# override (> last_performed) would keep winning in next_due and the
# "cycle restarts either way" promise above would be false.
self.due_override = None
self.add_history_entry(
entry_type=HistoryEntryType.MISSED if as_missed else HistoryEntryType.SKIPPED,