Accept new Plex websocket callback payloads (#40773)

This commit is contained in:
jjlawren authored and Paulus Schoutsen committed 2020-10-01 19:58:16 +00:00
1 parent 0902caa7e4
commit c0d4e1eaf4
5 files changed
+47 -14

No files matched your search

+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)