EV-56: a charger write that raises counts as a not-taken try
checks / unit (pull_request) Successful in 57m33s
infra-pin / fresh (pull_request) Successful in 2s

ManualWriter._write catches an Exception from drv.write_current (not CancelledError) and returns False, so every caller in Manual and Solar counts it as a refused try: RETRY_S spacing, MAX_TRIES, CHARGER_REFUSED. The tracker is not told (Q2). One ERROR record per raised value, armed again by another value, a taken write, a user change or the charger's return (Q1, G2). Shutdown writes (abandon, release) pass strict and keep base's behaviour (F3, H1, G3); the peak cut path keeps EV-54's (G1). test_ev13 T13: fails is 1 now (Q2). New test_ev56.py.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-11-30 18:52:11 +01:00
co-authored by Claude
parent 344c974f90
commit 3682b0754b
5 changed files with 1404 additions and 10 deletions
+1 -1
View File
@@ -802,7 +802,7 @@ for exc in (RuntimeError("the link broke"), hass.ReadOnly("read only")):
"never armed, no window left, no refusal counted, the mute set, "
f"the step error logged once ({len(errs)})",
never_stuck(tr) and pend(w.c.car) is None
and w.c.car_writer.fails == 0 and w.c.car.mute_until > 0
and w.c.car_writer.fails == 1 and w.c.car.mute_until > 0
and len(errs) == 1)