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
@@ -16,6 +16,7 @@ from ..const import (
MAX_META_LENGTH,
)
from ..helpers.permissions import require_write
from ..helpers.task_fields import INTERVAL_DAYS_RANGE
from . import _get_merged_tasks, _get_runtime_data, _load_object_entry
@@ -87,7 +88,7 @@ async def ws_analyze_interval(
vol.Required("type"): f"{DOMAIN}/task/apply_suggestion",
vol.Required("entry_id"): vol.All(str, vol.Length(max=MAX_ID_LENGTH)),
vol.Required("task_id"): vol.All(str, vol.Length(max=MAX_ID_LENGTH)),
vol.Required("interval"): vol.All(int, vol.Range(min=1, max=3650)),
vol.Required("interval"): vol.All(int, vol.Range(min=INTERVAL_DAYS_RANGE[0], max=INTERVAL_DAYS_RANGE[1])),
}
)
@require_write
@@ -121,7 +122,9 @@ async def ws_apply_suggestion(
vol.Required("type"): f"{DOMAIN}/task/seasonal_overrides",
vol.Required("entry_id"): vol.All(str, vol.Length(max=MAX_ID_LENGTH)),
vol.Required("task_id"): vol.All(str, vol.Length(max=MAX_ID_LENGTH)),
vol.Required("overrides"): dict,
# At most 12 month keys survive validation anyway — cap the input so a
# giant dict isn't iterated/coerced first (parity with every other list).
vol.Required("overrides"): vol.All(dict, vol.Length(max=12)),
}
)
@require_write