Skip to content

Commit

Permalink
Bump plexapi to 4.12.1 (#76393)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjlawren committed Aug 7, 2022
1 parent 36808a0 commit ea88f22
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion homeassistant/components/plex/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
],
Expand Down
34 changes: 17 additions & 17 deletions homeassistant/components/plex/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,24 +462,24 @@ def process_sessions():
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)
Expand Down
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion requirements_test_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ea88f22

Please sign in to comment.