Accept new Plex websocket callback payloads (#40773)

This commit is contained in:
jjlawren
2020-10-01 19:58:16 +00:00
committed by Paulus Schoutsen
parent 0902caa7e4
commit c0d4e1eaf4
5 changed files with 47 additions and 14 deletions
+2 -1
View File
@@ -1,7 +1,8 @@
"""Helper methods for Plex tests."""
from plexwebsocket import SIGNAL_DATA
def trigger_plex_update(mock_websocket):
"""Call the websocket callback method."""
callback = mock_websocket.call_args[0][1]
callback()
callback(SIGNAL_DATA, None, None)