EV-56: a charger write that raises counts as a not-taken try
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:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user