Skip to content

Commit 8660545

Browse files
Improve event gating
1 parent e2c2235 commit 8660545

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

streams/spotify_volume_handler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,9 @@ def update_spotify_volume(self):
174174
if handler.spotify.volume is None:
175175
handler.update_spotify_volume()
176176
event = handler.event_queue.get(timeout=2)
177-
if event in "spotify_volume_changed":
177+
if event == "spotify_volume_changed":
178178
handler.update_amplipi_volume()
179-
elif event in "amplipi_volume_changed":
179+
elif event == "amplipi_volume_changed":
180180
handler.update_spotify_volume()
181181
except queue.Empty:
182182
continue

0 commit comments

Comments
 (0)