Spotify: grey when closed or paused outside services

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-13 10:17:58 -04:00
co-authored by Claude Opus 5.5
parent 1eb9247ade
commit bdec4251d9
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -115,7 +115,7 @@ class TestChecks(unittest.TestCase):
self.assertEqual(msg().level, sp.OK) # not read yet
s.spotify = {"running": False}
self.assertEqual(msg().msg, "SPOTIFY CLOSED")
self.assertEqual(msg({"now": WEDNESDAY}).level, sp.OK) # only during services
self.assertEqual(msg({"now": WEDNESDAY}).level, sp.OFF) # grey, not an alarm, outside services
s.spotify = {"running": True, "state": "paused", "track": "spotify:track:a"}
self.assertEqual(msg().msg, "NOT PLAYING")
s.spotify["state"] = "playing"