Bump plexapi to 4.12.1 (#76393)

pull/76414/head
jjlawren 2022-08-07 12:41:12 -05:00 committed by GitHub
parent 36808a0db4
commit ea88f229a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 20 additions and 20 deletions

View File

@ -4,7 +4,7 @@
"config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/plex",
"requirements": [
"plexapi==4.11.2",
"plexapi==4.12.1",
"plexauth==0.0.6",
"plexwebsocket==0.0.13"
],

View File

@ -462,24 +462,24 @@ class PlexServer:
continue
session_username = next(iter(session.usernames), None)
for player in session.players:
unique_id = f"{self.machine_identifier}:{player.machineIdentifier}"
if unique_id not in self.active_sessions:
_LOGGER.debug("Creating new Plex session: %s", session)
self.active_sessions[unique_id] = PlexSession(self, session)
if session_username and session_username not in monitored_users:
ignored_clients.add(player.machineIdentifier)
_LOGGER.debug(
"Ignoring %s client owned by '%s'",
player.product,
session_username,
)
continue
player = session.player
unique_id = f"{self.machine_identifier}:{player.machineIdentifier}"
if unique_id not in self.active_sessions:
_LOGGER.debug("Creating new Plex session: %s", session)
self.active_sessions[unique_id] = PlexSession(self, session)
if session_username and session_username not in monitored_users:
ignored_clients.add(player.machineIdentifier)
_LOGGER.debug(
"Ignoring %s client owned by '%s'",
player.product,
session_username,
)
continue
process_device("session", player)
available_clients[player.machineIdentifier][
"session"
] = self.active_sessions[unique_id]
process_device("session", player)
available_clients[player.machineIdentifier][
"session"
] = self.active_sessions[unique_id]
for device in devices:
process_device("PMS", device)

View File

@ -1256,7 +1256,7 @@ pillow==9.2.0
pizzapi==0.0.3
# homeassistant.components.plex
plexapi==4.11.2
plexapi==4.12.1
# homeassistant.components.plex
plexauth==0.0.6

View File

@ -874,7 +874,7 @@ pilight==0.1.1
pillow==9.2.0
# homeassistant.components.plex
plexapi==4.11.2
plexapi==4.12.1
# homeassistant.components.plex
plexauth==0.0.6