Fix Plex client controls when connected via plex.tv resource (#37572)
This commit is contained in:
1 parent
38d2410156
commit
0f3b7b73af
2 files changed
+6
No files matched your search
@@ -326,6 +326,8 @@ class PlexServer:
|
||||
_LOGGER.debug("plex.tv resource connection successful: %s", client)
|
||||
except NotFound:
|
||||
_LOGGER.error("plex.tv resource connection failed: %s", resource.name)
|
||||
else:
|
||||
client.proxyThroughServer(value=False, server=self._plex_server)
|
||||
|
||||
self._plextv_device_cache[client_id] = client
|
||||
return client
|
||||
|
||||
@@ -229,6 +229,10 @@ class MockPlexClient:
|
||||
"""Mock the version attribute."""
|
||||
return "1.0"
|
||||
|
||||
def proxyThroughServer(self, value=True, server=None):
|
||||
"""Mock the proxyThroughServer method."""
|
||||
pass
|
||||
|
||||
def playMedia(self, item):
|
||||
"""Mock the playMedia method."""
|
||||
pass
|
||||
|
||||
Reference in new issue
Block a user