mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Ignore remote Plex clients during plex.tv lookup (#38327)
This commit is contained in:
parent
497c1587fe
commit
1d987b4846
@ -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."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user