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

@ -257,11 +257,7 @@ class PlexServer:
async def async_update_session(self, payload):
"""Process a session payload received from a websocket callback."""
try:
session_payload = payload["PlaySessionStateNotification"][0]
except KeyError:
await self.async_update_platforms()
return
session_payload = payload["PlaySessionStateNotification"][0]
state = session_payload["state"]
if state == "buffering":