257 files

This commit is contained in:
Home Assistant Version Control committed 2026-10-02 16:06:24 +00:00
1 parent 7c55603942
commit c29f5cc088
258 files changed
+24621 -3136

No files matched your search

@@ -40,7 +40,6 @@ from ..const import (
CONF_ADVANCED_COMPLETION_ACTIONS,
CONF_ADVANCED_ENVIRONMENTAL,
CONF_ADVANCED_GROUPS,
CONF_ADVANCED_PREDICTIONS,
CONF_ADVANCED_SCHEDULE_TIME,
CONF_ADVANCED_SEASONAL,
CONF_ARCHIVE_ONEOFF_DAYS,
@@ -83,6 +82,7 @@ from ..const import (
CONF_PANEL_ENABLED,
CONF_PANEL_TITLE,
CONF_PART_SEARCH_URL_TEMPLATE,
CONF_PARTS_COST_MODE,
CONF_QUIET_HOURS_ENABLED,
CONF_QUIET_HOURS_END,
CONF_QUIET_HOURS_START,
@@ -164,7 +164,6 @@ SETTING_SPECS: tuple[SettingSpec, ...] = (
SettingSpec(CONF_PANEL_TITLE, str, ""),
# Advanced-feature toggles
SettingSpec(CONF_ADVANCED_ADAPTIVE, bool, False),
SettingSpec(CONF_ADVANCED_PREDICTIONS, bool, False),
SettingSpec(CONF_ADVANCED_SEASONAL, bool, False),
SettingSpec(CONF_ADVANCED_ENVIRONMENTAL, bool, False),
SettingSpec(CONF_ADVANCED_BUDGET, bool, False),
@@ -229,6 +228,8 @@ SETTING_SPECS: tuple[SettingSpec, ...] = (
SettingSpec(CONF_BUDGET_ALERT_THRESHOLD, int, 80, int_range=(10, 100)),
SettingSpec(CONF_BUDGET_CURRENCY, str, DEFAULT_BUDGET_CURRENCY, max_len=5),
SettingSpec(CONF_CURRENCY_DECIMALS, int, DEFAULT_CURRENCY_DECIMALS, int_range=(0, 3)),
# #104: spare parts count when bought or when used (enum-checked in dashboard.py).
SettingSpec(CONF_PARTS_COST_MODE, str, "purchase", max_len=16),
)
_SPEC_BY_KEY: dict[str, SettingSpec] = {s.key: s for s in SETTING_SPECS}