wip refusals

This commit is contained in:
glenn schrooyen
2026-09-27 05:09:20 +02:00
parent e1d0970b23
commit b54b6a2a76
4 changed files with 217 additions and 323 deletions
+2 -6
View File
@@ -504,9 +504,5 @@ def problems(opts: dict) -> list:
text = str("" if raw is None else raw).strip().lower()
if text in MODES:
return []
return [f"shadow_mode is {raw!r}, which is not one of "
+ ", ".join(f"'{m}'" for m in MODES)
+ ". 'auto' leaves the battery alone while control is stopped and "
"commands it once control is started; 'on' records every "
"decision and commands nothing at all; 'off' is ordinary "
"control."]
return [f"{messages.setting('shadow_mode')} is {raw!r}. Choose "
+ ", ".join(f"'{m}'" for m in MODES) + "."]