Skip to content

Commit 97cb52e

Browse files
fix(config): raise charge_low_power_margin max from 30 to 60 minutes (#4347)
find_charge_rate (utils.py) handles a margin exceeding the charge window safely (falls back to max-rate charging), so there's no correctness reason for the 30-minute cap - it's been that low since the setting was added. Became newly enforceable after 013558e started clamping apps.yaml overrides to their declared min/max, which is what surfaced this as a regression for anyone who'd previously relied on an unclamped apps.yaml value above 30. Fixes #4320.
1 parent e725f75 commit 97cb52e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/predbat/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@
875875
"friendly_name": "Low power mode margin",
876876
"type": "input_number",
877877
"min": 0,
878-
"max": 30,
878+
"max": 60,
879879
"step": 5,
880880
"unit": "minutes",
881881
"icon": "mdi:seatbelt",

0 commit comments

Comments
 (0)