Okay, performance is out afterall as a reason. I installed a LMS on my laptop, only added 4 local files to the library, it runs superfast, and still HA aka the media browser throws the same error when trying to browse the library
Time to update this thread;
Plex integration is successfully connected but when trying to browse media I get the Unknown Error
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 26, in _handle_async_response
await func(hass, connection, msg)
File "/usr/src/homeassistant/homeassistant/components/media_player/__init__.py", line 1223, in websocket_browse_media
payload = await player.async_browse_media(media_content_type, media_content_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/cast/media_player.py", line 603, in async_browse_media
browse_media = await platform.async_browse_media(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/plex/cast.py", line 44, in async_browse_media
return await async_browse_plex_media(hass, None, None, platform=CAST_DOMAIN)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/plex/__init__.py", line 75, in async_browse_media
return await hass.async_add_executor_job(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/plex/media_browser.py", line 54, in browse_media
return root_payload(hass, is_internal, platform=platform)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/plex/media_browser.py", line 299, in root_payload
browse_media(
File "/usr/src/homeassistant/homeassistant/components/plex/media_browser.py", line 252, in browse_media
return server_payload()
^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/plex/media_browser.py", line 108, in server_payload
server_info.children.append(playlists_payload())
^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/plex/media_browser.py", line 134, in playlists_payload
if playlist.playlistType != "audio" and platform == "sonos":
^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Tag' object has no attribute 'playlistType'
@dmp99000 I have the same issue with my Plex. By any chance, in your Plex have you ever used the iTunes Add-On to import playlists into your Plex?
I believe we get the error AttributeError: 'Tag' object has no attribute 'playlistType'
because there are playlist entries in our Plex that are missing the playlistType attribute. I verified this by running the Plex API calls to retrieve the playlists and noticed that when Plex imports āfoldersā from my iTunes it creates them without a playlistType. They arenāt visible in the Plex UI, but all the playlists within that iTunes folder are. Made troubleshooting a little tricky.
I logged an issue here, includes details on how to recreate the troubleshooting steps to verify if itās the same problem: Plex: Cannot browse media, 'Tag' object has no attribute 'playlistType' Ā· Issue #119719 Ā· home-assistant/core Ā· GitHub