mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +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 = [
|
self._plextv_clients = [
|
||||||
x
|
x
|
||||||
for x in self.account.resources()
|
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(
|
_LOGGER.debug(
|
||||||
"Current available clients from plex.tv: %s", self._plextv_clients
|
"Current available clients from plex.tv: %s", self._plextv_clients
|
||||||
|
@ -53,6 +53,7 @@ class MockResource:
|
|||||||
self.provides = ["player"]
|
self.provides = ["player"]
|
||||||
self.device = MockPlexClient(f"http://192.168.0.1{index}:32500", index + 10)
|
self.device = MockPlexClient(f"http://192.168.0.1{index}:32500", index + 10)
|
||||||
self.presence = index == 0
|
self.presence = index == 0
|
||||||
|
self.publicAddressMatches = True
|
||||||
|
|
||||||
def connect(self, timeout):
|
def connect(self, timeout):
|
||||||
"""Mock the resource connect method."""
|
"""Mock the resource connect method."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user