mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Fix Plex client controls when connected via plex.tv resource (#37572)
This commit is contained in:
parent
b9f97e64f8
commit
ba356c41e0
@ -318,6 +318,8 @@ class PlexServer:
|
|||||||
_LOGGER.debug("plex.tv resource connection successful: %s", client)
|
_LOGGER.debug("plex.tv resource connection successful: %s", client)
|
||||||
except NotFound:
|
except NotFound:
|
||||||
_LOGGER.error("plex.tv resource connection failed: %s", resource.name)
|
_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
|
self._plextv_device_cache[client_id] = client
|
||||||
return client
|
return client
|
||||||
|
@ -229,6 +229,10 @@ class MockPlexClient:
|
|||||||
"""Mock the version attribute."""
|
"""Mock the version attribute."""
|
||||||
return "1.0"
|
return "1.0"
|
||||||
|
|
||||||
|
def proxyThroughServer(self, value=True, server=None):
|
||||||
|
"""Mock the proxyThroughServer method."""
|
||||||
|
pass
|
||||||
|
|
||||||
def playMedia(self, item):
|
def playMedia(self, item):
|
||||||
"""Mock the playMedia method."""
|
"""Mock the playMedia method."""
|
||||||
pass
|
pass
|
||||||
|
Loading…
x
Reference in New Issue
Block a user