diff --git a/homeassistant/components/plex/manifest.json b/homeassistant/components/plex/manifest.json index 5d6ffd19550..3de7895a805 100644 --- a/homeassistant/components/plex/manifest.json +++ b/homeassistant/components/plex/manifest.json @@ -4,7 +4,7 @@ "config_flow": true, "documentation": "https://www.home-assistant.io/integrations/plex", "requirements": [ - "plexapi==4.5.1", + "plexapi==4.6.1", "plexauth==0.0.6", "plexwebsocket==0.0.13" ], diff --git a/requirements_all.txt b/requirements_all.txt index 3e398156dc7..866ecd62814 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -1166,7 +1166,7 @@ pillow==8.2.0 pizzapi==0.0.3 # homeassistant.components.plex -plexapi==4.5.1 +plexapi==4.6.1 # homeassistant.components.plex plexauth==0.0.6 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 7e982626fe5..326e4bbc667 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -639,7 +639,7 @@ pilight==0.1.1 pillow==8.2.0 # homeassistant.components.plex -plexapi==4.5.1 +plexapi==4.6.1 # homeassistant.components.plex plexauth==0.0.6 diff --git a/tests/components/plex/test_browse_media.py b/tests/components/plex/test_browse_media.py index d9f02c49341..4892262fc32 100644 --- a/tests/components/plex/test_browse_media.py +++ b/tests/components/plex/test_browse_media.py @@ -11,7 +11,12 @@ from .const import DEFAULT_DATA async def test_browse_media( - hass, hass_ws_client, mock_plex_server, requests_mock, library_movies_filtertypes + hass, + hass_ws_client, + mock_plex_server, + requests_mock, + library_movies_filtertypes, + empty_payload, ): """Test getting Plex clients from plex.tv.""" websocket_client = await hass_ws_client(hass) @@ -92,6 +97,10 @@ async def test_browse_media( f"{mock_plex_server.url_in_use}/library/sections/1/all?includeMeta=1", text=library_movies_filtertypes, ) + requests_mock.get( + f"{mock_plex_server.url_in_use}/library/sections/1/collections?includeMeta=1", + text=empty_payload, + ) msg_id += 1 library_section_id = next(iter(mock_plex_server.library.sections())).key