124 files
This commit is contained in:
1 parent
33de328a33
commit
9742f385a3
124 files changed
+13907
-1376
No files matched your search
@@ -34,11 +34,13 @@ from ..const import (
|
||||
CONF_ADVANCED_SCHEDULE_TIME,
|
||||
CONF_ADVANCED_SEASONAL,
|
||||
CONF_ARCHIVE_ONEOFF_DAYS,
|
||||
CONF_BATTERY_LOW_PERCENT,
|
||||
CONF_BUDGET_ALERT_THRESHOLD,
|
||||
CONF_BUDGET_ALERTS_ENABLED,
|
||||
CONF_BUDGET_CURRENCY,
|
||||
CONF_BUDGET_MONTHLY,
|
||||
CONF_BUDGET_YEARLY,
|
||||
CONF_DEFAULT_CONSUMABLE_THRESHOLD,
|
||||
CONF_DEFAULT_WARNING_DAYS,
|
||||
CONF_DELETE_ARCHIVED_ONEOFF_DAYS,
|
||||
CONF_DISABLED_TEMPLATE_IDS,
|
||||
@@ -64,6 +66,8 @@ from ..const import (
|
||||
CONF_QUIET_HOURS_END,
|
||||
CONF_QUIET_HOURS_START,
|
||||
CONF_REMINDER_LEAD_DAYS,
|
||||
CONF_ROW_ACTION_NOTICE,
|
||||
CONF_ROW_ACTION_STYLE,
|
||||
CONF_SHOPPING_LIST_ENTITY,
|
||||
CONF_SNOOZE_DURATION_HOURS,
|
||||
CONF_WARRANTY_REMINDER_DAYS,
|
||||
@@ -90,12 +94,19 @@ SETTING_SPECS: tuple[SettingSpec, ...] = (
|
||||
# 0 = no warning window: new tasks turn due_soon on the due date itself
|
||||
# (the per-task range already allowed 0 — #145).
|
||||
SettingSpec(CONF_DEFAULT_WARNING_DAYS, int, int_range=(0, 365)),
|
||||
# #146: household "low" floors (percent) for discovery and the battery fleet.
|
||||
SettingSpec(CONF_DEFAULT_CONSUMABLE_THRESHOLD, int, int_range=(1, 90)),
|
||||
SettingSpec(CONF_BATTERY_LOW_PERCENT, int, int_range=(1, 90)),
|
||||
SettingSpec(CONF_NOTIFICATIONS_ENABLED, bool),
|
||||
SettingSpec(CONF_NOTIFY_SERVICE, str, max_len=200),
|
||||
# todo.* entity the buy-task shopping sync mirrors into ("" = off);
|
||||
# format-validated by a bespoke sanitiser rule (todo. prefix), max_len is
|
||||
# HA's entity-id cap.
|
||||
SettingSpec(CONF_SHOPPING_LIST_ENTITY, str, max_len=255),
|
||||
# #145: enum-validated by a bespoke rule (ROW_ACTION_STYLES); the notice
|
||||
# flag is only ever cleared by the panel banner.
|
||||
SettingSpec(CONF_ROW_ACTION_STYLE, str, max_len=32),
|
||||
SettingSpec(CONF_ROW_ACTION_NOTICE, bool),
|
||||
SettingSpec(CONF_PANEL_ENABLED, bool),
|
||||
# panel_title is trimmed+capped to MAX_PANEL_TITLE_LENGTH by a bespoke rule,
|
||||
# not a plain drop-if-too-long — so no max_len here.
|
||||
|
||||
Reference in new issue
Block a user