EV-13: a refused current write arms the stuck check only when the charger shows no life

A refused write on a live charger no longer reads as a stuck reading 60 s
later, so a refused write shows one amber row (charger_refused). A frozen
charger still arms and is still caught.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VSY9UpTaUYnjJF5oVtbM1w
This commit is contained in:
Claude
2026-11-22 01:50:44 +01:00
parent 76f4de23c7
commit c25877fea4
3 changed files with 1078 additions and 8 deletions
+1 -1
View File
@@ -257,7 +257,7 @@ class ManualWriter:
finally:
self._stamp(now)
tracker.end_write(self.last_done)
tracker.note_write(now, was, a)
tracker.note_write(now, was, a, ok, getattr(drv, "polls", ()))
tracker.end_write(self.last_done)
self.log.append(("current", a, now, ok))
if ok: