fix: reject COUNT rules without DTSTART so limited automations cannot run forever (#27781)

This commit is contained in:
G30
2026-08-12 01:08:55 -06:00
committed by GitHub
parent 783e87c0c5
commit 2ab0311b99
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -118,6 +118,9 @@ class ERROR_MESSAGES(str, Enum):
AUTOMATION_TOO_FREQUENT = lambda interval='': f'Schedule too frequent. Minimum interval is {interval} seconds.'
AUTOMATION_INVALID_RRULE = lambda err='': f'Invalid RRULE: {err}'
AUTOMATION_NO_FUTURE_RUNS = 'RRULE has no future occurrences'
AUTOMATION_COUNT_REQUIRES_DTSTART = (
'RRULE with COUNT requires an explicit DTSTART line to anchor the occurrence window'
)
FEATURE_DISABLED = lambda name='': f'{name} is disabled'
INPUT_TOO_LONG = lambda size='': f'Input prompt exceeds maximum length of {size}'