Make the DANTE button count all 19 watched devices.

It now reads 19/19 to match Dante Controller. NA-Tracks, SuperRack and the
ProPresenter Mac still alarm on their own buttons, so a drop is not flagged
twice; DANTE just shows 18/19 while one of them is missing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-08 09:15:46 -04:00
co-authored by Claude Opus 5.5
parent 195b111bb7
commit 38b6616e3f
4 changed files with 23 additions and 5 deletions
+10 -1
View File
@@ -100,7 +100,7 @@ class TestChecks(unittest.TestCase):
self.assertEqual(bad, {})
self.assertEqual(tiles["all"]["x"], "ALL OK")
self.assertEqual(tiles["hd1"]["x"], "HD1\n28h")
self.assertEqual(tiles["dante"]["x"], "DANTE\n16/16")
self.assertEqual(tiles["dante"]["x"], "DANTE\n19/19")
def test_connection_states(self):
c = self.snap.conns["ATEM"]
@@ -167,6 +167,15 @@ class TestChecks(unittest.TestCase):
out = dict(sp.check_dante({"conn": "audinate-dantecontroller", "devices": ["BOH-WING"]}, self.snap, self.ctx))
self.assertEqual(out["conn"].msg, "NO DATA")
def test_dante_count_includes_other_buttons(self):
devices = json.loads(self.snap.vars[("audinate-dantecontroller", "devices")])
devices.remove("NA-Tracks")
self.snap.vars[("audinate-dantecontroller", "devices")] = json.dumps(devices)
tiles, _ = run_steps(sp.Engine(CONFIG), self.snap, self.now, 4)
self.assertEqual(tiles["dante"]["x"], "DANTE\n18/19")
self.assertEqual(level(tiles["dante"]), "ok") # the alarm is on TRACKS, not twice
self.assertEqual(tiles["tracks"]["x"], "TRACKS\nDANTE GONE")
def test_shure_psm_tascam(self):
s = self.snap
s.vars[("Axient_1", "ch_1_battery_bars")] = "1"