1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Add "Recommended" and radio station support to Plex media browser (#64057)

This commit is contained in:
jjlawren
2022-01-25 15:02:23 -06:00
committed by GitHub
parent a371f8f788
commit 34d0f2ffd7
9 changed files with 279 additions and 83 deletions

View File

@@ -368,6 +368,18 @@ def sonos_resources_fixture():
return load_fixture("plex/sonos_resources.xml")
@pytest.fixture(name="hubs", scope="session")
def hubs_fixture():
"""Load hubs resource payload and return it."""
return load_fixture("plex/hubs.xml")
@pytest.fixture(name="hubs_music_library", scope="session")
def hubs_music_library_fixture():
"""Load music library hubs resource payload and return it."""
return load_fixture("plex/hubs_library_section.xml")
@pytest.fixture(name="entry")
def mock_config_entry():
"""Return the default mocked config entry."""