Fix NA Ingest's own DVS from the DANTE button, and stop saying NOTHING TO FIX when something is failing.

STUDIO-A-Ingest now maps to a local dvs_ingest fix (same helper as the other
Macs, which NA Ingest also needs). A hold on a failing button that has no
automatic fix now shows NO AUTO FIX instead of NOTHING TO FIX.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-08 12:19:26 -04:00
co-authored by Claude Opus 5.5
parent ef9d755982
commit b8748be655
4 changed files with 31 additions and 4 deletions
+14 -2
View File
@@ -754,6 +754,14 @@ class Engine:
plan.append((ident, "restart", chk["conn"], chk))
return plan
def failing(self, tile_id):
"""Is anything on this button (or its members) in a confirmed fault right now?"""
for key in self.keys_for(tile_id):
tr = self.trackers[key]
if tr.confirmed and tr.result.level in (WARN, ERR):
return True
return False
def note(self, tile_id, text, level, now, seconds):
"""Show `text` on the button for a while (hold feedback), instead of its usual text."""
self.notes[tile_id] = {"text": text, "level": level, "until": now + seconds}
@@ -761,8 +769,12 @@ class Engine:
def run_fixes(self, tile_id, snap, comp, now, cooldown=60):
plan = self.fix_plan(tile_id, snap)
if not plan:
log.info("HOLD %s: nothing failing, nothing to fix", tile_id)
self.note(tile_id, "NOTHING\nTO FIX", "idle", now, 4)
if self.failing(tile_id):
log.info("HOLD %s: failing, but there is no automatic fix for it", tile_id)
self.note(tile_id, "NO AUTO\nFIX", "idle", now, 4)
else:
log.info("HOLD %s: nothing failing, nothing to fix", tile_id)
self.note(tile_id, "NOTHING\nTO FIX", "idle", now, 4)
return plan
started, names, waited = [], [], False
for ident, kind, what, chk in plan: