UX-08 2d review: action log reachable in status JSON, engaged peak row pinned, imported keys expanded
- status_payload() also returns the action log as `events`. The page does not render it. Some entries (a dropped inverter's reason, the peak guard's projection, unplaced watts) are written nowhere else, and DOCS still points installers at the action log. - test_peakguard pins the engaged row's ordered pair (the battery's share, then the limit). - test_messages expands setting keys named by constants imported from another app module, so the shown-text 30-word scan counts them. - p1.py: 'A meter message could not be read'. DOCS glossary: control board in plain words, with the hardware in an installer note. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -375,6 +375,13 @@ check("the status page says so in words: a red row, at 0 W, cleared by start",
|
||||
for c in ctrl.checks()))
|
||||
check("the banner leads with it",
|
||||
ctrl.status_payload()["banner"] == messages.banner_direction(False))
|
||||
check("...the line under the buttons says it in plain words, and the action "
|
||||
"log with the raw reason is still reachable in the status JSON",
|
||||
ctrl.status_payload()["hint"].endswith(
|
||||
messages.hint("direction", unit=ctrl.inverters[0].name))
|
||||
and ctrl.status_payload()["events"] == ctrl.events
|
||||
and any(e.split(" ", 1)[1].startswith("FAILSAFE ")
|
||||
for e in ctrl.status_payload()["events"]))
|
||||
check("it stays at 0 W on later cycles too",
|
||||
hass.writes[-1] == 0.0 and hass.writes.count(0.0) >= 1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user