mirror of
https://github.com/home-assistant/core.git
synced 2025-08-01 03:35:09 +02:00
Ignore remote Plex clients during plex.tv lookup (#38327)
This commit is contained in:
committed by
Davide Varricchio
parent
01d68e01c6
commit
67cdeafe21
@@ -115,7 +115,7 @@ class PlexServer:
|
||||
self._plextv_clients = [
|
||||
x
|
||||
for x in self.account.resources()
|
||||
if "player" in x.provides and x.presence
|
||||
if "player" in x.provides and x.presence and x.publicAddressMatches
|
||||
]
|
||||
_LOGGER.debug(
|
||||
"Current available clients from plex.tv: %s", self._plextv_clients
|
||||
|
@@ -53,6 +53,7 @@ class MockResource:
|
||||
self.provides = ["player"]
|
||||
self.device = MockPlexClient(f"http://192.168.0.1{index}:32500", index + 10)
|
||||
self.presence = index == 0
|
||||
self.publicAddressMatches = True
|
||||
|
||||
def connect(self, timeout):
|
||||
"""Mock the resource connect method."""
|
||||
|
Reference in New Issue
Block a user