Bump plexwebsocket to 0.0.13 (#48330)

This commit is contained in:
jjlawren 2021-03-25 13:12:12 -05:00 committed by GitHub
parent ec1334099e
commit e42ca35c94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 9 additions and 14 deletions

View file

@ -1,7 +1,7 @@
"""Helper methods for Plex tests."""
from datetime import timedelta
from plexwebsocket import SIGNAL_CONNECTION_STATE, SIGNAL_DATA, STATE_CONNECTED
from plexwebsocket import SIGNAL_CONNECTION_STATE, STATE_CONNECTED
import homeassistant.util.dt as dt_util
@ -29,7 +29,7 @@ def websocket_connected(mock_websocket):
def trigger_plex_update(mock_websocket, payload=UPDATE_PAYLOAD):
"""Call the websocket callback method with a Plex update."""
callback = mock_websocket.call_args[0][1]
callback(SIGNAL_DATA, payload, None)
callback("playing", payload, None)
async def wait_for_debouncer(hass):