Bump plexwebsocket to 0.0.13 (#48330)
This commit is contained in:
parent
ec1334099e
commit
e42ca35c94
6 changed files with 9 additions and 14 deletions
|
@ -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":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue