mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 04:50:05 +00:00
Improve Plex media_player entity naming (#31755)
This commit is contained in:
@@ -53,6 +53,15 @@ class MockPlexAccount:
|
||||
return self._resources
|
||||
|
||||
|
||||
class MockPlexSystemAccount:
|
||||
"""Mock a PlexSystemAccount instance."""
|
||||
|
||||
def __init__(self):
|
||||
"""Initialize the object."""
|
||||
self.name = "Dummy"
|
||||
self.accountID = 1
|
||||
|
||||
|
||||
class MockPlexServer:
|
||||
"""Mock a PlexServer instance."""
|
||||
|
||||
@@ -68,6 +77,11 @@ class MockPlexServer:
|
||||
]
|
||||
prefix = "https" if ssl else "http"
|
||||
self._baseurl = f"{prefix}://{host}:{port}"
|
||||
self._systemAccount = MockPlexSystemAccount()
|
||||
|
||||
def systemAccounts(self):
|
||||
"""Mock the systemAccounts lookup method."""
|
||||
return [self._systemAccount]
|
||||
|
||||
@property
|
||||
def url_in_use(self):
|
||||
|
||||
Reference in New Issue
Block a user