updated apps
This commit is contained in:
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user