I'm trying to create an Automation where one step in the Sequence is a Media Player > Play Media. I've connected my Spotify account with the official integration and am able to see the list of albums, artists, playlists, etc. when selecting media.
Logger: homeassistant.components.websocket_api.http.connection
Source: components/spotify/browse_media.py:354
integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 11:34:19 PM (1 occurrence)
Last logged: 11:34:19 PM
[546574509984] Error handling message: Unknown error (unknown_error) Josh Goldberg from 192.168.4.27 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36)
Traceback (most recent call last):
File "<string>", line 9, in __mashumaro_from_dict_json__
File "<string>", line 20, in __mashumaro_from_dict_json__
mashumaro.exceptions.MissingField: Field "track" of type Item is missing in PlaylistTrack instance
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 86, in __mashumaro_from_json__
File "<string>", line 11, in __mashumaro_from_dict_json__
mashumaro.exceptions.InvalidFieldValue: Field "items" of type list[PlaylistTrack] in PlaylistTracks has invalid value [{'added_at': '2026-03-18T03:26:01Z', 'added_by': {'external_urls': {'spotify': 'https://open.spotify.com/user/31ghv3aa4p7ittz3axw4vw3adbvu'}, 'href': 'https://api.spotify.com/v1/users/31ghv3aa4p7ittz3axw4vw3adbvu', 'id': '31ghv3aa4p7ittz3axw4vw3adbvu', 'type': 'user', 'uri': 'spotify:user:31ghv3aa4p7ittz3axw4vw3adbvu'}, 'is_local': False, 'primary_color': None, 'item': {'is_playable': True, 'explicit': False, 'type': 'track', 'episode': False, 'track': True, 'album': {'is_playable': True, 'type': 'album', 'album_type': 'album', 'href': 'https://api.spotify.com/v1/albums/5EyIDBAqhnlkAHqvPRwdbX', 'id': '5EyIDBAqhnlkAHqvPRwdbX', 'images': [{'url': 'https://i.scdn.co/image/ab67616d0000b2734509204d0860cc0cc67e83dc', 'width': 640, 'height': 640}, {'url': 'https://i.scdn.co/image/ab67616d00001e024509204d0860cc0cc67e83dc', 'width': 300, 'height': 300}, {'url': 'https://i.scdn.co/image/ab67616d000048514509204d0860cc0cc67e83dc', 'width': 64, 'height': 64}], 'name': 'Led Zeppelin IV (Remaster)', 'release_date': '1971-11-08', 'release_date_precision': 'day', 'uri': 'spotify:album:5EyIDBAqhnlkAHqvPRwdbX', 'artists': [{'external_urls': {'spotify': 'https://open.spotify.com/artist/36QJpDe2go2KgaRleHCDTp'}, 'href': 'https://api.spotify.com/v1/artists/36QJpDe2go2KgaRleHCDTp', 'id': '36QJpDe2go2KgaRleHCDTp', 'name': 'Led Zeppelin', 'type': 'artist', 'uri': 'spotify:artist:36QJpDe2go2KgaRleHCDTp'}], 'external_urls': {'spotify': 'https://open.spotify.com/album/5EyIDBAqhnlkAHqvPRwdbX'}, 'total_tracks': 8}, 'artists': [{'external_urls': {'spotify': 'https://open.spotify.com/artist/36QJpDe2go2KgaRleHCDTp'}, 'href': 'https://api.spotify.com/v1/artists/36QJpDe2go2KgaRleHCDTp', 'id': '36QJpDe2go2KgaRleHCDTp', 'name': 'Led Zeppelin', 'type': 'artist', 'uri': 'spotify:artist:36QJpDe2go2KgaRleHCDTp'}], 'disc_number': 1, 'track_number': 4, 'duration_ms': 482830, 'external_ids': {'isrc': 'USAT21300959'}, 'external_urls': {'spotify': 'https://open.spotify.com/track/0RO9W1xJoUEpq5MEelddFb'}, 'href': 'https://api.spotify.com/v1/tracks/0RO9W1xJoUEpq5MEelddFb', 'id': '0RO9W1xJoUEpq5MEelddFb', 'name': 'Stairway to Heaven - Remaster', 'uri': 'spotify:track:0RO9W1xJoUEpq5MEelddFb', 'is_local': False}, 'video_thumbnail': {'url': None}}, {'added_at': '2026-01-08T18:37:20Z', 'added_by': {'external_urls': {'spotify': 'https://open.spotify.com/user/31ghv3aa4p7ittz3axw4vw3adbvu'}, 'href': 'https://api.spotify.com/v1/users/31ghv3aa4p7ittz3axw4vw3adbvu', 'id': '31ghv3aa4p7ittz3axw4vw3adbvu', 'type': 'user', 'uri': 'spotify:user:31ghv3aa4p7ittz3axw4vw3adbvu'}, 'is_local': False, 'primary_color': None, 'item': {'is_playable': True, 'explicit': False, 'type': 'track', 'episode': False, 'track': True, 'album': {'is_playable': True, 'type': 'album', 'album_type': 'single', 'href': 'https://api.spotify.com/v1/albums/5nwQtsWkXgDKY6x543wqv3', 'id': '5nwQtsWkXgDKY6x543wqv3', 'images': [{'url': 'https://i.scdn.co/image/ab67616d0000b273d48d3d0a55f6b1dfa5decbbf', 'width': 640, 'height': 640}, {'url': 'https://i.scdn.co/image/ab67616d00001e02d48d3d0a55f6b1dfa5decbbf', 'width': 300, 'height': 300}, {'url': 'https://i.scdn.co/image/ab67616d00004851d48d3d0a55f6b1dfa5decbbf', 'width': 64, 'height': 64}], 'name': "Satan's a Woman / I Am a Witch", 'release_date': '2020-06-17', 'release_date_precision': 'day', 'uri': 'spotify:album:5nwQtsWkXgDKY6x543wqv3', 'artists': [{'external_urls': {'spotify': 'https://open.spotify.com/artist/5NYEE4kgrEZPlM3DxUsTyc'}, 'href': 'https://api.spotify.com/v1/artists/5NYEE4kgrEZPlM3DxUsTyc', 'id': '5NYEE4kgrEZPlM3DxUsTyc', 'name': 'Twin Temple', 'type': 'artist', 'uri': 'spotify:artist:5NYEE4kgrEZPlM3DxUsTyc'}], 'external_urls': {'spotify': 'https://open.spotify.com/album/5nwQtsWkXgDKY6x543wqv3'}, 'total_tracks': 2}, 'artists': [{'external_urls': {'spotify': 'https://open.spotify.com/artist/5NYEE4kgrEZPlM3DxUsTyc'}, 'href': 'https://api.spotify.com/v1/artists/5NYEE4kgrEZPlM3DxUsTyc', 'id': '5NYEE4kgrEZPlM3DxUsTyc', 'name': 'Twin Temple', 'type': 'artist', 'uri': 'spotify:artist:5NYEE4kgrEZPlM3DxUsTyc'}], 'disc_number': 1, 'track_number': 1, 'duration_ms': 170945, 'external_ids': {'isrc': 'GBMLU1923701'}, 'external_urls': {'spotify': 'https://open.spotify.com/track/3Ip8cDiALtHFl3HW434Qss'}, 'href': 'https://api.spotify.com/v1/tracks/3Ip8cDiALtHFl3HW434Qss', 'id': '3Ip8cDiALtHFl3HW434Qss', 'name': "Satan's a Woman", 'uri': 'spotify:track:3Ip8cDiALtHFl3HW434Qss', 'is_local': False}, 'video_thumbnail': {'url': None}}, {'added_at': '2026-01-10T19:49:24Z', 'added_by': {'external_urls': {'spotify': 'https://open.spotify.com/user/31ghv3aa4p7ittz3axw4vw3adbvu'}, 'href': 'https://api.spotify.com/v1/users/31ghv3aa4p7ittz3axw4vw3adbvu', 'id': '31ghv3aa4p7ittz3axw4vw3adbvu', 'type': 'user', 'uri': 'spotify:user:31ghv3aa4p7ittz3axw4vw3adbvu'}, 'is_local': False, 'primary_color': None, 'item': {'is_playable': True, 'explicit': False, 'type': 'track', 'episode': False, 'track': True, 'album': {'is_playable': True, 'type': 'album', 'album_type': 'album', 'href': 'https://api.spotify.com/v1/albums/0Xwkx2TLFwRcoK0OWQ0Msa', 'id': '0Xwkx2TLFwRcoK0OWQ0Msa', 'images': [{'url': 'https://i.scdn.co/image/ab67616d0000b2733c534611bd3658006378a2d7', 'width': 640, 'height': 640}, {'url': 'https://i.scdn.co/image/ab67616d00001e023c534611bd3658006378a2d7', 'width': 300, 'height': 300}, {'url': 'https://i.scdn.co/image/ab67616d000048513c534611bd3658006378a2d7', 'width': 64, 'height': 64}], 'name': 'The Animals', 'release_date': '1964-01-01', 'release_date_precision': 'day', 'uri': 'spotify:album:0Xwkx2TLFwRcoK0OWQ0Msa', 'artists': [{'external_urls': {'spotify': 'https://open.spotify.com/artist/3ICflSq6ZgYAIrm2CTkfVP'}, 'href': 'https://api.spotify.com/v1/artists/3ICflSq6ZgYAIrm2CTkfVP', 'id': '3ICflSq6ZgYAIrm2CTkfVP', 'name': 'The Animals', 'type': 'artist', 'uri': 'spotify:artist:3ICflSq6ZgYAIrm2CTkfVP'}], 'external_urls': {'spotify': 'https://open.spotify.com/album/0Xwkx2TLFwRcoK0OWQ0Msa'}, 'total_tracks': 13}, 'artists': [{'external_urls': {'spotify': 'https://open.spotify.com/artist/3ICflSq6ZgYAIrm2CTkfVP'}, 'href': 'https://api.spotify.com/v1/artists/3ICflSq6ZgYAIrm2CTkfVP', 'id': '3ICflSq6ZgYAIrm2CTkfVP', 'name': 'The Animals', 'type': 'artist', 'uri': 'spotify:artist:3ICflSq6ZgYAIrm2CTkfVP'}], 'disc_number': 1, 'track_number': 1, 'duration_ms': 271280, 'external_ids': {'isrc': 'USA176460010'}, 'external_urls': {'spotify': 'https://open.spotify.com/track/7BY005dacJkbO6EPiOh2wb'}, 'href': 'https://api.spotify.com/v1/tracks/7BY005dacJkbO6EPiOh2wb', 'id': '7BY005dacJkbO6EPiOh2wb', 'name': 'House Of The Rising Sun', 'uri': 'spotify:track:7BY005dacJkbO6EPiOh2wb', 'is_local': False}, 'video_thumbnail': {'url': None}}, {'added_at': '2026-01-10T19:49:28Z', 'added_by': {'external_urls': {'spotify': 'https://open.spotify.com/user/31ghv3aa4p7ittz3axw4vw3adbvu'}, 'href': 'https://api.spotify.com/v1/users/31ghv3aa4p7ittz3axw4vw3adbvu', 'id': '31ghv3aa4p7ittz3axw4vw3adbvu', 'type': 'user', 'uri': 'spotify:user:31ghv3aa4p7ittz3axw4vw3adbvu'}, 'is_local': False, 'primary_color': None, 'item': {'is_playable': True, 'explicit': False, 'type': 'track', 'episode': False, 'track': True, 'album': {'is_playable': True, 'type': 'album', 'album_type': 'compilation', 'href': 'https://api.spotify.com/v1/albums/18fOLsMG8Msf1DEaW0E71K', 'id': '18fOLsMG8Msf1DEaW0E71K', 'images': [{'url': 'https://i.scdn.co/image/ab67616d0000b27313cbe3e4dfa81fe5b91f2f1c', 'width': 640, 'height': 640}, {'url': 'https://i.scdn.co/image/ab67616d00001e0213cbe3e4dfa81fe5b91f2f1c', 'width': 300, 'height': 300}, {'url': 'https://i.scdn.co/image/ab67616d0000485113cbe3e4dfa81fe5b91f2f1c', 'width': 64, 'height': 64}], 'name': 'Call Me', 'release_date': '2004-01-01', 'release_date_precision': 'day', 'uri': 'spotify:album:18fOLsMG8Msf1DEaW0E71K', 'artists': [{'external_urls': {'spotify': 'https://open.spotify.com/artist/4tpUmLEVLCGFr93o8hFFIB'}, 'href': 'https://api.spotify.com/v1/artists/4tpUmLEVLCGFr93o8hFFIB', 'id': '4tpUmLEVLCGFr93o8hFFIB', 'name': 'Blondie', 'type': 'artist', 'uri': 'spotify:artist:4tpUmLEVLCGFr93o8hFFIB'}], 'external_urls': {'spotify': 'https://open.spotify.com/album/18fOLsMG8Msf1DEaW0E71K'}, 'total_tracks': 5}, 'artists': [{'external_urls': {'spotify': 'https://open.spotify.com/artist/4tpUmLEVLCGFr93o8hFFIB'}, 'href': 'https://api.spotify.com/v1/artists/4tpUmLEVLCGFr93o8hFFIB', 'id': '4tpUmLEVLCGFr93o8hFFIB', 'name': 'Blondie', 'type': 'artist', 'uri': 'spotify:artist:4tpUmLEVLCGFr93o8hFFIB'}], 'disc_number': 1, 'track_number': 1, 'duration_ms': 212226, 'external_ids': {'isrc': 'USCH39800016'}, 'external_urls': {'spotify': 'https://open.spotify.com/track/7HKxTNVlkHsfMLhigmhC0I'}, 'href': 'https://api.spotify.com/v1/tracks/7HKxTNVlkHsfMLhigmhC0I', 'id': '7HKxTNVlkHsfMLhigmhC0I', 'name': 'Call Me', 'uri': 'spotify:track:7HKxTNVlkHsfMLhigmhC0I', 'is_local': False}, 'video_thumbnail': {'url': None}}, {'added_at': '2026-01-08T18:37:14Z', 'added_by': {'external_urls': {'spotify': 'https://open.spotify.com/user/31ghv3aa4p7ittz3axw4vw3adbvu'}, 'href': 'https://api.spotify.com/v1/users/31ghv3aa4p7ittz3axw4vw3adbvu', 'id': '31ghv3aa4p7ittz3axw4vw3adbvu', 'type': 'user', 'uri': 'spotify:user:31ghv3aa4p7ittz3axw4vw3adbvu'}, 'is_local': False, 'primary_color': None, 'item': {'is_playable': True, 'explicit': False, 'type': 'track', 'episode': False, 'track': True, 'album': {'is_playable': True, 'type': 'album', 'album_type': 'album', 'href': 'https://api.spotify.com/v1/albums/6eUW0wxWtzkFdaEFsTJto6', 'id': '6eUW0wxWtzkFdaEFsTJto6', 'images': [{'url': 'https://i.scdn.co/image/ab67616d0000b27315ebbedaacef61af244262a8', 'width': 640, 'height': 640}, {'url': 'https://i.scdn.co/image/ab67616d00001e0215ebbedaacef61af244262a8', 'width': 300, 'height': 300}, {'url': 'https://i.scdn.co/image/ab67616d0000485115ebbedaacef61af244262a8', 'width': 64, 'height': 64}], 'name': 'Whenever You Need Somebody', 'release_date': '1987-11-12', 'release_date_precision': 'day', 'uri': 'spotify:album:6eUW0wxWtzkFdaEFsTJto6', 'artists': [{'external_urls': {'spotify': 'https://open.spotify.com/artist/0gxyHStUsqpMadRV0Di1Qt'}, 'href': 'https://api.spotify.com/v1/artists/0gxyHStUsqpMadRV0Di1Qt', 'id': '0gxyHStUsqpMadRV0Di1Qt', 'name': 'Rick Astley', 'type': 'artist', 'uri': 'spotify:artist:0gxyHStUsqpMadRV0Di1Qt'}], 'external_urls': {'spotify': 'https://open.spotify.com/album/6eUW0wxWtzkFdaEFsTJto6'}, 'total_tracks': 10}, 'artists': [{'external_urls': {'spotify': 'https://open.spotify.com/artist/0gxyHStUsqpMadRV0Di1Qt'}, 'href': 'https://api.spotify.com/v1/artists/0gxyHStUsqpMadRV0Di1Qt', 'id': '0gxyHStUsqpMadRV0Di1Qt', 'name': 'Rick Astley', 'type': 'artist', 'uri': 'spotify:artist:0gxyHStUsqpMadRV0Di1Qt'}], 'disc_number': 1, 'track_number': 1, 'duration_ms': 213573, 'external_ids': {'isrc': 'GBARL9300135'}, 'external_urls': {'spotify': 'https://open.spotify.com/track/4PTG3Z6ehGkBFwjybzWkR8'}, 'href': 'https://api.spotify.com/v1/tracks/4PTG3Z6ehGkBFwjybzWkR8', 'id': '4PTG3Z6ehGkBFwjybzWkR8', 'name': 'Never Gonna Give You Up', 'uri': 'spotify:track:4PTG3Z6ehGkBFwjybzWkR8', 'is_local': False}, 'video_thumbnail': {'url': None}}]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 28, in _handle_async_response
await func(hass, connection, msg)
File "/usr/src/homeassistant/homeassistant/components/media_player/__init__.py", line 1351, in websocket_browse_media
payload = await player.async_browse_media(media_content_type, media_content_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/sonos/media_player.py", line 802, in async_browse_media
return await media_browser.async_browse_media(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<6 lines>...
)
^
File "/usr/src/homeassistant/homeassistant/components/sonos/media_browser.py", line 160, in async_browse_media
return await spotify.async_browse_media(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
hass, media_content_type, media_content_id, can_play_artist=False
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/src/homeassistant/homeassistant/components/spotify/browse_media.py", line 248, in async_browse_media
result = await async_browse_media_internal(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<5 lines>...
)
^
File "/usr/src/homeassistant/homeassistant/components/spotify/browse_media.py", line 284, in async_browse_media_internal
response = await build_item_response(
^^^^^^^^^^^^^^^^^^^^^^^^^^
...<3 lines>...
)
^
File "/usr/src/homeassistant/homeassistant/components/spotify/browse_media.py", line 354, in build_item_response
if playlist := await spotify.get_playlist(media_content_id):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/spotifyaio/spotify.py", line 84, in wrapper
return await func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/spotifyaio/spotify.py", line 446, in get_playlist
return Playlist.from_json(response)
~~~~~~~~~~~~~~~~~~^^^^^^^^^^
File "<string>", line 88, in __mashumaro_from_json__
mashumaro.exceptions.InvalidFieldValue: Field "items" of type PlaylistTracks in Playlist has invalid value {'href': 'https://api.spotify.com/v1/playlists/5PGMD89KTrXmujCaTMveAo/items?offset=0&limit=100&additional_types=track', 'items': [{'added_at': '2026-03-18T03:26:01Z', 'added_by': {'external_urls': {'spotify': 'https://open.spotify.com/user/31ghv3aa4p7ittz3axw4vw3adbvu'}, 'href': 'https://api.spotify.com/v1/users/31ghv3aa4p7ittz3axw4vw3adbvu', 'id': '31ghv3aa4p7ittz3axw4vw3adbvu', 'type': 'user', 'uri': 'spotify:user:31ghv3aa4p7ittz3axw4vw3adbvu'}, 'is_local': False, 'primary_color': None, 'item': {'is_playable': True, 'explicit': False, 'type': 'track', 'episode': False, 'track': True, 'album': {'is_playable': True, 'type': 'album', 'album_type': 'album', 'href': 'https://api.spotify.com/v1/albums/5EyIDBAqhnlkAHqvPRwdbX', 'id': '5EyIDBAqhnlkAHqvPRwdbX', 'images': [{'url': 'https://i.scdn.co/image/ab67616d0000b2734509204d0860cc0cc67e83dc', 'width': 640, 'height': 640}, {'url': 'https://i.scdn.co/image/ab67616d00001e024509204d0860cc0cc67e83dc', 'width': 300, 'height': 300}, {'url': 'https://i.scdn.co/image/ab67616d000048514509204d0860cc0cc67e83dc', 'width': 64, 'height': 64}], 'name': 'Led Zeppelin IV (Remaster)', 'release_date': '1971-11-08', 'release_date_precision': 'day', 'uri': 'spotify:album:5EyIDBAqhnlkAHqvPRwdbX', 'artists': [{'external_urls': {'spotify': 'https://open.spotify.com/artist/36QJpDe2go2KgaRleHCDTp'}, 'href': 'https://api.spotify.com/v1/artists/36QJpDe2go2KgaRleHCDTp', 'id': '36QJpDe2go2KgaRleHCDTp', 'name': 'Led Zeppelin', 'type': 'artist', 'uri': 'spotify:artist:36QJpDe2go2KgaRleHCDTp'}], 'external_urls': {'spotify': 'https://open.spotify.com/album/5EyIDBAqhnlkAHqvPRwdbX'}, 'total_tracks': 8}, 'artists': [{'external_urls': {'spotify': 'https://open.spotify.com/artist/36QJpDe2go2KgaRleHCDTp'}, 'href': 'https://api.spotify.com/v1/artists/36QJpDe2go2KgaRleHCDTp', 'id': '36QJpDe2go2KgaRleHCDTp', 'name': 'Led Zeppelin', 'type': 'artist', 'uri': 'spotify:artist:36QJpDe2go2KgaRleHCDTp'}], 'disc_number': 1, 'track_number': 4, 'duration_ms': 482830, 'external_ids': {'isrc': 'USAT21300959'}, 'external_urls': {'spotify': 'https://open.spotify.com/track/0RO9W1xJoUEpq5MEelddFb'}, 'href': 'https://api.spotify.com/v1/tracks/0RO9W1xJoUEpq5MEelddFb', 'id': '0RO9W1xJoUEpq5MEelddFb', 'name': 'Stairway to Heaven - Remaster', 'uri': 'spotify:track:0RO9W1xJoUEpq5MEelddFb', 'is_local': False}, 'video_thumbnail': {'url': None}}, {'added_at': '2026-01-08T18:37:20Z', 'added_by': {'external_urls': {'spotify': 'https://open.spotify.com/user/31ghv3aa4p7ittz3axw4vw3adbvu'}, 'href': 'https://api.spotify.com/v1/users/31ghv3aa4p7ittz3axw4vw3adbvu', 'id': '31ghv3aa4p7ittz3axw4vw3adbvu', 'type': 'user', 'uri': 'spotify:user:31ghv3aa4p7ittz3axw4vw3adbvu'}, 'is_local': False, 'primary_color': None, 'item': {'is_playable': True, 'explicit': False, 'type': 'track', 'episode': False, 'track': True, 'album': {'is_playable': True, 'type': 'album', 'album_type': 'single', 'href': 'https://api.spotify.com/v1/albums/5nwQtsWkXgDKY6x543wqv3', 'id': '5nwQtsWkXgDKY6x543wqv3', 'images': [{'url': 'https://i.scdn.co/image/ab67616d0000b273d48d3d0a55f6b1dfa5decbbf', 'width': 640, 'height': 640}, {'url': 'https://i.scdn.co/image/ab67616d00001e02d48d3d0a55f6b1dfa5decbbf', 'width': 300, 'height': 300}, {'url': 'https://i.scdn.co/image/ab67616d00004851d48d3d0a55f6b1dfa5decbbf', 'width': 64, 'height': 64}], 'name': "Satan's a Woman / I Am a Witch", 'release_date': '2020-06-17', 'release_date_precision': 'day', 'uri': 'spotify:album:5nwQtsWkXgDKY6x543wqv3', 'artists': [{'external_urls': {'spotify': 'https://open.spotify.com/artist/5NYEE4kgrEZPlM3DxUsTyc'}, 'href': 'https://api.spotify.com/v1/artists/5NYEE4kgrEZPlM3DxUsTyc', 'id': '5NYEE4kgrEZPlM3DxUsTyc', 'name': 'Twin Temple', 'type': 'artist', 'uri': 'spotify:artist:5NYEE4kgrEZPlM3DxUsTyc'}], 'external_urls': {'spotify': 'https://open.spotify.com/album/5nwQtsWkXgDKY6x543wqv3'}, 'total_tracks': 2}, 'artists': [{'external_urls': {'spotify': 'https://open.spotify.com/artist/5NYEE4kgrEZPlM3DxUsTyc'}, 'href': 'https://api.spotify.com/v1/artists/5NYEE4kgrEZPlM3DxUsTyc', 'id': '5NYEE4kgrEZPlM3DxUsTyc', 'name': 'Twin Temple', 'type': 'artist', 'uri': 'spotify:artist:5NYEE4kgrEZPlM3DxUsTyc'}], 'disc_number': 1, 'track_number': 1, 'duration_ms': 170945, 'external_ids': {'isrc': 'GBMLU1923701'}, 'external_urls': {'spotify': 'https://open.spotify.com/track/3Ip8cDiALtHFl3HW434Qss'}, 'href': 'https://api.spotify.com/v1/tracks/3Ip8cDiALtHFl3HW434Qss', 'id': '3Ip8cDiALtHFl3HW434Qss', 'name': "Satan's a Woman", 'uri': 'spotify:track:3Ip8cDiALtHFl3HW434Qss', 'is_local': False}, 'video_thumbnail': {'url': None}}, {'added_at': '2026-01-10T19:49:24Z', 'added_by': {'external_urls': {'spotify': 'https://open.spotify.com/user/31ghv3aa4p7ittz3axw4vw3adbvu'}, 'href': 'https://api.spotify.com/v1/users/31ghv3aa4p7ittz3axw4vw3adbvu', 'id': '31ghv3aa4p7ittz3axw4vw3adbvu', 'type': 'user', 'uri': 'spotify:user:31ghv3aa4p7ittz3axw4vw3adbvu'}, 'is_local': False, 'primary_color': None, 'item': {'is_playable': True, 'explicit': False, 'type': 'track', 'episode': False, 'track': True, 'album': {'is_playable': True, 'type': 'album', 'album_type': 'album', 'href': 'https://api.spotify.com/v1/albums/0Xwkx2TLFwRcoK0OWQ0Msa', 'id': '0Xwkx2TLFwRcoK0OWQ0Msa', 'images': [{'url': 'https://i.scdn.co/image/ab67616d0000b2733c534611bd3658006378a2d7', 'width': 640, 'height': 640}, {'url': 'https://i.scdn.co/image/ab67616d00001e023c534611bd3658006378a2d7', 'width': 300, 'height': 300}, {'url': 'https://i.scdn.co/image/ab67616d000048513c534611bd3658006378a2d7', 'width': 64, 'height': 64}], 'name': 'The Animals', 'release_date': '1964-01-01', 'release_date_precision': 'day', 'uri': 'spotify:album:0Xwkx2TLFwRcoK0OWQ0Msa', 'artists': [{'external_urls': {'spotify': 'https://open.spotify.com/artist/3ICflSq6ZgYAIrm2CTkfVP'}, 'href': 'https://api.spotify.com/v1/artists/3ICflSq6ZgYAIrm2CTkfVP', 'id': '3ICflSq6ZgYAIrm2CTkfVP', 'name': 'The Animals', 'type': 'artist', 'uri': 'spotify:artist:3ICflSq6ZgYAIrm2CTkfVP'}], 'external_urls': {'spotify': 'https://open.spotify.com/album/0Xwkx2TLFwRcoK0OWQ0Msa'}, 'total_tracks': 13}, 'artists': [{'external_urls': {'spotify': 'https://open.spotify.com/artist/3ICflSq6ZgYAIrm2CTkfVP'}, 'href': 'https://api.spotify.com/v1/artists/3ICflSq6ZgYAIrm2CTkfVP', 'id': '3ICflSq6ZgYAIrm2CTkfVP', 'name': 'The Animals', 'type': 'artist', 'uri': 'spotify:artist:3ICflSq6ZgYAIrm2CTkfVP'}], 'disc_number': 1, 'track_number': 1, 'duration_ms': 271280, 'external_ids': {'isrc': 'USA176460010'}, 'external_urls': {'spotify': 'https://open.spotify.com/track/7BY005dacJkbO6EPiOh2wb'}, 'href': 'https://api.spotify.com/v1/tracks/7BY005dacJkbO6EPiOh2wb', 'id': '7BY005dacJkbO6EPiOh2wb', 'name': 'House Of The Rising Sun', 'uri': 'spotify:track:7BY005dacJkbO6EPiOh2wb', 'is_local': False}, 'video_thumbnail': {'url': None}}, {'added_at': '2026-01-10T19:49:28Z', 'added_by': {'external_urls': {'spotify': 'https://open.spotify.com/user/31ghv3aa4p7ittz3axw4vw3adbvu'}, 'href': 'https://api.spotify.com/v1/users/31ghv3aa4p7ittz3axw4vw3adbvu', 'id': '31ghv3aa4p7ittz3axw4vw3adbvu', 'type': 'user', 'uri': 'spotify:user:31ghv3aa4p7ittz3axw4vw3adbvu'}, 'is_local': False, 'primary_color': None, 'item': {'is_playable': True, 'explicit': False, 'type': 'track', 'episode': False, 'track': True, 'album': {'is_playable': True, 'type': 'album', 'album_type': 'compilation', 'href': 'https://api.spotify.com/v1/albums/18fOLsMG8Msf1DEaW0E71K', 'id': '18fOLsMG8Msf1DEaW0E71K', 'images': [{'url': 'https://i.scdn.co/image/ab67616d0000b27313cbe3e4dfa81fe5b91f2f1c', 'width': 640, 'height': 640}, {'url': 'https://i.scdn.co/image/ab67616d00001e0213cbe3e4dfa81fe5b91f2f1c', 'width': 300, 'height': 300}, {'url': 'https://i.scdn.co/image/ab67616d0000485113cbe3e4dfa81fe5b91f2f1c', 'width': 64, 'height': 64}], 'name': 'Call Me', 'release_date': '2004-01-01', 'release_date_precision': 'day', 'uri': 'spotify:album:18fOLsMG8Msf1DEaW0E71K', 'artists': [{'external_urls': {'spotify': 'https://open.spotify.com/artist/4tpUmLEVLCGFr93o8hFFIB'}, 'href': 'https://api.spotify.com/v1/artists/4tpUmLEVLCGFr93o8hFFIB', 'id': '4tpUmLEVLCGFr93o8hFFIB', 'name': 'Blondie', 'type': 'artist', 'uri': 'spotify:artist:4tpUmLEVLCGFr93o8hFFIB'}], 'external_urls': {'spotify': 'https://open.spotify.com/album/18fOLsMG8Msf1DEaW0E71K'}, 'total_tracks': 5}, 'artists': [{'external_urls': {'spotify': 'https://open.spotify.com/artist/4tpUmLEVLCGFr93o8hFFIB'}, 'href': 'https://api.spotify.com/v1/artists/4tpUmLEVLCGFr93o8hFFIB', 'id': '4tpUmLEVLCGFr93o8hFFIB', 'name': 'Blondie', 'type': 'artist', 'uri': 'spotify:artist:4tpUmLEVLCGFr93o8hFFIB'}], 'disc_number': 1, 'track_number': 1, 'duration_ms': 212226, 'external_ids': {'isrc': 'USCH39800016'}, 'external_urls': {'spotify': 'https://open.spotify.com/track/7HKxTNVlkHsfMLhigmhC0I'}, 'href': 'https://api.spotify.com/v1/tracks/7HKxTNVlkHsfMLhigmhC0I', 'id': '7HKxTNVlkHsfMLhigmhC0I', 'name': 'Call Me', 'uri': 'spotify:track:7HKxTNVlkHsfMLhigmhC0I', 'is_local': False}, 'video_thumbnail': {'url': None}}, {'added_at': '2026-01-08T18:37:14Z', 'added_by': {'external_urls': {'spotify': 'https://open.spotify.com/user/31ghv3aa4p7ittz3axw4vw3adbvu'}, 'href': 'https://api.spotify.com/v1/users/31ghv3aa4p7ittz3axw4vw3adbvu', 'id': '31ghv3aa4p7ittz3axw4vw3adbvu', 'type': 'user', 'uri': 'spotify:user:31ghv3aa4p7ittz3axw4vw3adbvu'}, 'is_local': False, 'primary_color': None, 'item': {'is_playable': True, 'explicit': False, 'type': 'track', 'episode': False, 'track': True, 'album': {'is_playable': True, 'type': 'album', 'album_type': 'album', 'href': 'https://api.spotify.com/v1/albums/6eUW0wxWtzkFdaEFsTJto6', 'id': '6eUW0wxWtzkFdaEFsTJto6', 'images': [{'url': 'https://i.scdn.co/image/ab67616d0000b27315ebbedaacef61af244262a8', 'width': 640, 'height': 640}, {'url': 'https://i.scdn.co/image/ab67616d00001e0215ebbedaacef61af244262a8', 'width': 300, 'height': 300}, {'url': 'https://i.scdn.co/image/ab67616d0000485115ebbedaacef61af244262a8', 'width': 64, 'height': 64}], 'name': 'Whenever You Need Somebody', 'release_date': '1987-11-12', 'release_date_precision': 'day', 'uri': 'spotify:album:6eUW0wxWtzkFdaEFsTJto6', 'artists': [{'external_urls': {'spotify': 'https://open.spotify.com/artist/0gxyHStUsqpMadRV0Di1Qt'}, 'href': 'https://api.spotify.com/v1/artists/0gxyHStUsqpMadRV0Di1Qt', 'id': '0gxyHStUsqpMadRV0Di1Qt', 'name': 'Rick Astley', 'type': 'artist', 'uri': 'spotify:artist:0gxyHStUsqpMadRV0Di1Qt'}], 'external_urls': {'spotify': 'https://open.spotify.com/album/6eUW0wxWtzkFdaEFsTJto6'}, 'total_tracks': 10}, 'artists': [{'external_urls': {'spotify': 'https://open.spotify.com/artist/0gxyHStUsqpMadRV0Di1Qt'}, 'href': 'https://api.spotify.com/v1/artists/0gxyHStUsqpMadRV0Di1Qt', 'id': '0gxyHStUsqpMadRV0Di1Qt', 'name': 'Rick Astley', 'type': 'artist', 'uri': 'spotify:artist:0gxyHStUsqpMadRV0Di1Qt'}], 'disc_number': 1, 'track_number': 1, 'duration_ms': 213573, 'external_ids': {'isrc': 'GBARL9300135'}, 'external_urls': {'spotify': 'https://open.spotify.com/track/4PTG3Z6ehGkBFwjybzWkR8'}, 'href': 'https://api.spotify.com/v1/tracks/4PTG3Z6ehGkBFwjybzWkR8', 'id': '4PTG3Z6ehGkBFwjybzWkR8', 'name': 'Never Gonna Give You Up', 'uri': 'spotify:track:4PTG3Z6ehGkBFwjybzWkR8', 'is_local': False}, 'video_thumbnail': {'url': None}}], 'limit': 100, 'next': None, 'offset': 0, 'previous': None, 'total': 5}
FWIW I searched for other issues that mentioned similar errors but none were open & recent. This is my first issue in the home-assistant org so I'm not very confident I've done everything right. Thanks for reading this (and maintaining such an awesome piece of OSS)! ❤️
The problem
I'm trying to create an Automation where one step in the Sequence is a Media Player > Play Media. I've connected my Spotify account with the official integration and am able to see the list of albums, artists, playlists, etc. when selecting media.
The crash is a modal showing:
What version of Home Assistant Core has the issue?
core-2026.3.2
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Spotify
Link to integration documentation on our website
https://www.home-assistant.io/integrations/spotify
Diagnostics information
config_entry-spotify-01KKWPEN0ZT067PP10EB0JC5HS.json
Example YAML snippet
Anything in the logs that might be useful for us?
Logger: homeassistant.components.websocket_api.http.connection Source: components/spotify/browse_media.py:354 integration: Home Assistant WebSocket API (documentation, issues) First occurred: 11:34:19 PM (1 occurrence) Last logged: 11:34:19 PM [546574509984] Error handling message: Unknown error (unknown_error) Josh Goldberg from 192.168.4.27 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36) Traceback (most recent call last): File "<string>", line 9, in __mashumaro_from_dict_json__ File "<string>", line 20, in __mashumaro_from_dict_json__ mashumaro.exceptions.MissingField: Field "track" of type Item is missing in PlaylistTrack instance During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<string>", line 86, in __mashumaro_from_json__ File "<string>", line 11, in __mashumaro_from_dict_json__ mashumaro.exceptions.InvalidFieldValue: Field "items" of type list[PlaylistTrack] in PlaylistTracks has invalid value [{'added_at': '2026-03-18T03:26:01Z', 'added_by': {'external_urls': {'spotify': 'https://open.spotify.com/user/31ghv3aa4p7ittz3axw4vw3adbvu'}, 'href': 'https://api.spotify.com/v1/users/31ghv3aa4p7ittz3axw4vw3adbvu', 'id': '31ghv3aa4p7ittz3axw4vw3adbvu', 'type': 'user', 'uri': 'spotify:user:31ghv3aa4p7ittz3axw4vw3adbvu'}, 'is_local': False, 'primary_color': None, 'item': {'is_playable': True, 'explicit': False, 'type': 'track', 'episode': False, 'track': True, 'album': {'is_playable': True, 'type': 'album', 'album_type': 'album', 'href': 'https://api.spotify.com/v1/albums/5EyIDBAqhnlkAHqvPRwdbX', 'id': '5EyIDBAqhnlkAHqvPRwdbX', 'images': [{'url': 'https://i.scdn.co/image/ab67616d0000b2734509204d0860cc0cc67e83dc', 'width': 640, 'height': 640}, {'url': 'https://i.scdn.co/image/ab67616d00001e024509204d0860cc0cc67e83dc', 'width': 300, 'height': 300}, {'url': 'https://i.scdn.co/image/ab67616d000048514509204d0860cc0cc67e83dc', 'width': 64, 'height': 64}], 'name': 'Led Zeppelin IV (Remaster)', 'release_date': '1971-11-08', 'release_date_precision': 'day', 'uri': 'spotify:album:5EyIDBAqhnlkAHqvPRwdbX', 'artists': [{'external_urls': {'spotify': 'https://open.spotify.com/artist/36QJpDe2go2KgaRleHCDTp'}, 'href': 'https://api.spotify.com/v1/artists/36QJpDe2go2KgaRleHCDTp', 'id': '36QJpDe2go2KgaRleHCDTp', 'name': 'Led Zeppelin', 'type': 'artist', 'uri': 'spotify:artist:36QJpDe2go2KgaRleHCDTp'}], 'external_urls': {'spotify': 'https://open.spotify.com/album/5EyIDBAqhnlkAHqvPRwdbX'}, 'total_tracks': 8}, 'artists': [{'external_urls': {'spotify': 'https://open.spotify.com/artist/36QJpDe2go2KgaRleHCDTp'}, 'href': 'https://api.spotify.com/v1/artists/36QJpDe2go2KgaRleHCDTp', 'id': '36QJpDe2go2KgaRleHCDTp', 'name': 'Led Zeppelin', 'type': 'artist', 'uri': 'spotify:artist:36QJpDe2go2KgaRleHCDTp'}], 'disc_number': 1, 'track_number': 4, 'duration_ms': 482830, 'external_ids': {'isrc': 'USAT21300959'}, 'external_urls': {'spotify': 'https://open.spotify.com/track/0RO9W1xJoUEpq5MEelddFb'}, 'href': 'https://api.spotify.com/v1/tracks/0RO9W1xJoUEpq5MEelddFb', 'id': '0RO9W1xJoUEpq5MEelddFb', 'name': 'Stairway to Heaven - Remaster', 'uri': 'spotify:track:0RO9W1xJoUEpq5MEelddFb', 'is_local': False}, 'video_thumbnail': {'url': None}}, {'added_at': '2026-01-08T18:37:20Z', 'added_by': {'external_urls': {'spotify': 'https://open.spotify.com/user/31ghv3aa4p7ittz3axw4vw3adbvu'}, 'href': 'https://api.spotify.com/v1/users/31ghv3aa4p7ittz3axw4vw3adbvu', 'id': '31ghv3aa4p7ittz3axw4vw3adbvu', 'type': 'user', 'uri': 'spotify:user:31ghv3aa4p7ittz3axw4vw3adbvu'}, 'is_local': False, 'primary_color': None, 'item': {'is_playable': True, 'explicit': False, 'type': 'track', 'episode': False, 'track': True, 'album': {'is_playable': True, 'type': 'album', 'album_type': 'single', 'href': 'https://api.spotify.com/v1/albums/5nwQtsWkXgDKY6x543wqv3', 'id': '5nwQtsWkXgDKY6x543wqv3', 'images': [{'url': 'https://i.scdn.co/image/ab67616d0000b273d48d3d0a55f6b1dfa5decbbf', 'width': 640, 'height': 640}, {'url': 'https://i.scdn.co/image/ab67616d00001e02d48d3d0a55f6b1dfa5decbbf', 'width': 300, 'height': 300}, {'url': 'https://i.scdn.co/image/ab67616d00004851d48d3d0a55f6b1dfa5decbbf', 'width': 64, 'height': 64}], 'name': "Satan's a Woman / I Am a Witch", 'release_date': '2020-06-17', 'release_date_precision': 'day', 'uri': 'spotify:album:5nwQtsWkXgDKY6x543wqv3', 'artists': [{'external_urls': {'spotify': 'https://open.spotify.com/artist/5NYEE4kgrEZPlM3DxUsTyc'}, 'href': 'https://api.spotify.com/v1/artists/5NYEE4kgrEZPlM3DxUsTyc', 'id': '5NYEE4kgrEZPlM3DxUsTyc', 'name': 'Twin Temple', 'type': 'artist', 'uri': 'spotify:artist:5NYEE4kgrEZPlM3DxUsTyc'}], 'external_urls': {'spotify': 'https://open.spotify.com/album/5nwQtsWkXgDKY6x543wqv3'}, 'total_tracks': 2}, 'artists': [{'external_urls': {'spotify': 'https://open.spotify.com/artist/5NYEE4kgrEZPlM3DxUsTyc'}, 'href': 'https://api.spotify.com/v1/artists/5NYEE4kgrEZPlM3DxUsTyc', 'id': '5NYEE4kgrEZPlM3DxUsTyc', 'name': 'Twin Temple', 'type': 'artist', 'uri': 'spotify:artist:5NYEE4kgrEZPlM3DxUsTyc'}], 'disc_number': 1, 'track_number': 1, 'duration_ms': 170945, 'external_ids': {'isrc': 'GBMLU1923701'}, 'external_urls': {'spotify': 'https://open.spotify.com/track/3Ip8cDiALtHFl3HW434Qss'}, 'href': 'https://api.spotify.com/v1/tracks/3Ip8cDiALtHFl3HW434Qss', 'id': '3Ip8cDiALtHFl3HW434Qss', 'name': "Satan's a Woman", 'uri': 'spotify:track:3Ip8cDiALtHFl3HW434Qss', 'is_local': False}, 'video_thumbnail': {'url': None}}, {'added_at': '2026-01-10T19:49:24Z', 'added_by': {'external_urls': {'spotify': 'https://open.spotify.com/user/31ghv3aa4p7ittz3axw4vw3adbvu'}, 'href': 'https://api.spotify.com/v1/users/31ghv3aa4p7ittz3axw4vw3adbvu', 'id': '31ghv3aa4p7ittz3axw4vw3adbvu', 'type': 'user', 'uri': 'spotify:user:31ghv3aa4p7ittz3axw4vw3adbvu'}, 'is_local': False, 'primary_color': None, 'item': {'is_playable': True, 'explicit': False, 'type': 'track', 'episode': False, 'track': True, 'album': {'is_playable': True, 'type': 'album', 'album_type': 'album', 'href': 'https://api.spotify.com/v1/albums/0Xwkx2TLFwRcoK0OWQ0Msa', 'id': '0Xwkx2TLFwRcoK0OWQ0Msa', 'images': [{'url': 'https://i.scdn.co/image/ab67616d0000b2733c534611bd3658006378a2d7', 'width': 640, 'height': 640}, {'url': 'https://i.scdn.co/image/ab67616d00001e023c534611bd3658006378a2d7', 'width': 300, 'height': 300}, {'url': 'https://i.scdn.co/image/ab67616d000048513c534611bd3658006378a2d7', 'width': 64, 'height': 64}], 'name': 'The Animals', 'release_date': '1964-01-01', 'release_date_precision': 'day', 'uri': 'spotify:album:0Xwkx2TLFwRcoK0OWQ0Msa', 'artists': [{'external_urls': {'spotify': 'https://open.spotify.com/artist/3ICflSq6ZgYAIrm2CTkfVP'}, 'href': 'https://api.spotify.com/v1/artists/3ICflSq6ZgYAIrm2CTkfVP', 'id': '3ICflSq6ZgYAIrm2CTkfVP', 'name': 'The Animals', 'type': 'artist', 'uri': 'spotify:artist:3ICflSq6ZgYAIrm2CTkfVP'}], 'external_urls': {'spotify': 'https://open.spotify.com/album/0Xwkx2TLFwRcoK0OWQ0Msa'}, 'total_tracks': 13}, 'artists': [{'external_urls': {'spotify': 'https://open.spotify.com/artist/3ICflSq6ZgYAIrm2CTkfVP'}, 'href': 'https://api.spotify.com/v1/artists/3ICflSq6ZgYAIrm2CTkfVP', 'id': '3ICflSq6ZgYAIrm2CTkfVP', 'name': 'The Animals', 'type': 'artist', 'uri': 'spotify:artist:3ICflSq6ZgYAIrm2CTkfVP'}], 'disc_number': 1, 'track_number': 1, 'duration_ms': 271280, 'external_ids': {'isrc': 'USA176460010'}, 'external_urls': {'spotify': 'https://open.spotify.com/track/7BY005dacJkbO6EPiOh2wb'}, 'href': 'https://api.spotify.com/v1/tracks/7BY005dacJkbO6EPiOh2wb', 'id': '7BY005dacJkbO6EPiOh2wb', 'name': 'House Of The Rising Sun', 'uri': 'spotify:track:7BY005dacJkbO6EPiOh2wb', 'is_local': False}, 'video_thumbnail': {'url': None}}, {'added_at': '2026-01-10T19:49:28Z', 'added_by': {'external_urls': {'spotify': 'https://open.spotify.com/user/31ghv3aa4p7ittz3axw4vw3adbvu'}, 'href': 'https://api.spotify.com/v1/users/31ghv3aa4p7ittz3axw4vw3adbvu', 'id': '31ghv3aa4p7ittz3axw4vw3adbvu', 'type': 'user', 'uri': 'spotify:user:31ghv3aa4p7ittz3axw4vw3adbvu'}, 'is_local': False, 'primary_color': None, 'item': {'is_playable': True, 'explicit': False, 'type': 'track', 'episode': False, 'track': True, 'album': {'is_playable': True, 'type': 'album', 'album_type': 'compilation', 'href': 'https://api.spotify.com/v1/albums/18fOLsMG8Msf1DEaW0E71K', 'id': '18fOLsMG8Msf1DEaW0E71K', 'images': [{'url': 'https://i.scdn.co/image/ab67616d0000b27313cbe3e4dfa81fe5b91f2f1c', 'width': 640, 'height': 640}, {'url': 'https://i.scdn.co/image/ab67616d00001e0213cbe3e4dfa81fe5b91f2f1c', 'width': 300, 'height': 300}, {'url': 'https://i.scdn.co/image/ab67616d0000485113cbe3e4dfa81fe5b91f2f1c', 'width': 64, 'height': 64}], 'name': 'Call Me', 'release_date': '2004-01-01', 'release_date_precision': 'day', 'uri': 'spotify:album:18fOLsMG8Msf1DEaW0E71K', 'artists': [{'external_urls': {'spotify': 'https://open.spotify.com/artist/4tpUmLEVLCGFr93o8hFFIB'}, 'href': 'https://api.spotify.com/v1/artists/4tpUmLEVLCGFr93o8hFFIB', 'id': '4tpUmLEVLCGFr93o8hFFIB', 'name': 'Blondie', 'type': 'artist', 'uri': 'spotify:artist:4tpUmLEVLCGFr93o8hFFIB'}], 'external_urls': {'spotify': 'https://open.spotify.com/album/18fOLsMG8Msf1DEaW0E71K'}, 'total_tracks': 5}, 'artists': [{'external_urls': {'spotify': 'https://open.spotify.com/artist/4tpUmLEVLCGFr93o8hFFIB'}, 'href': 'https://api.spotify.com/v1/artists/4tpUmLEVLCGFr93o8hFFIB', 'id': '4tpUmLEVLCGFr93o8hFFIB', 'name': 'Blondie', 'type': 'artist', 'uri': 'spotify:artist:4tpUmLEVLCGFr93o8hFFIB'}], 'disc_number': 1, 'track_number': 1, 'duration_ms': 212226, 'external_ids': {'isrc': 'USCH39800016'}, 'external_urls': {'spotify': 'https://open.spotify.com/track/7HKxTNVlkHsfMLhigmhC0I'}, 'href': 'https://api.spotify.com/v1/tracks/7HKxTNVlkHsfMLhigmhC0I', 'id': '7HKxTNVlkHsfMLhigmhC0I', 'name': 'Call Me', 'uri': 'spotify:track:7HKxTNVlkHsfMLhigmhC0I', 'is_local': False}, 'video_thumbnail': {'url': None}}, {'added_at': '2026-01-08T18:37:14Z', 'added_by': {'external_urls': {'spotify': 'https://open.spotify.com/user/31ghv3aa4p7ittz3axw4vw3adbvu'}, 'href': 'https://api.spotify.com/v1/users/31ghv3aa4p7ittz3axw4vw3adbvu', 'id': '31ghv3aa4p7ittz3axw4vw3adbvu', 'type': 'user', 'uri': 'spotify:user:31ghv3aa4p7ittz3axw4vw3adbvu'}, 'is_local': False, 'primary_color': None, 'item': {'is_playable': True, 'explicit': False, 'type': 'track', 'episode': False, 'track': True, 'album': {'is_playable': True, 'type': 'album', 'album_type': 'album', 'href': 'https://api.spotify.com/v1/albums/6eUW0wxWtzkFdaEFsTJto6', 'id': '6eUW0wxWtzkFdaEFsTJto6', 'images': [{'url': 'https://i.scdn.co/image/ab67616d0000b27315ebbedaacef61af244262a8', 'width': 640, 'height': 640}, {'url': 'https://i.scdn.co/image/ab67616d00001e0215ebbedaacef61af244262a8', 'width': 300, 'height': 300}, {'url': 'https://i.scdn.co/image/ab67616d0000485115ebbedaacef61af244262a8', 'width': 64, 'height': 64}], 'name': 'Whenever You Need Somebody', 'release_date': '1987-11-12', 'release_date_precision': 'day', 'uri': 'spotify:album:6eUW0wxWtzkFdaEFsTJto6', 'artists': [{'external_urls': {'spotify': 'https://open.spotify.com/artist/0gxyHStUsqpMadRV0Di1Qt'}, 'href': 'https://api.spotify.com/v1/artists/0gxyHStUsqpMadRV0Di1Qt', 'id': '0gxyHStUsqpMadRV0Di1Qt', 'name': 'Rick Astley', 'type': 'artist', 'uri': 'spotify:artist:0gxyHStUsqpMadRV0Di1Qt'}], 'external_urls': {'spotify': 'https://open.spotify.com/album/6eUW0wxWtzkFdaEFsTJto6'}, 'total_tracks': 10}, 'artists': [{'external_urls': {'spotify': 'https://open.spotify.com/artist/0gxyHStUsqpMadRV0Di1Qt'}, 'href': 'https://api.spotify.com/v1/artists/0gxyHStUsqpMadRV0Di1Qt', 'id': '0gxyHStUsqpMadRV0Di1Qt', 'name': 'Rick Astley', 'type': 'artist', 'uri': 'spotify:artist:0gxyHStUsqpMadRV0Di1Qt'}], 'disc_number': 1, 'track_number': 1, 'duration_ms': 213573, 'external_ids': {'isrc': 'GBARL9300135'}, 'external_urls': {'spotify': 'https://open.spotify.com/track/4PTG3Z6ehGkBFwjybzWkR8'}, 'href': 'https://api.spotify.com/v1/tracks/4PTG3Z6ehGkBFwjybzWkR8', 'id': '4PTG3Z6ehGkBFwjybzWkR8', 'name': 'Never Gonna Give You Up', 'uri': 'spotify:track:4PTG3Z6ehGkBFwjybzWkR8', 'is_local': False}, 'video_thumbnail': {'url': None}}] During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 28, in _handle_async_response await func(hass, connection, msg) File "/usr/src/homeassistant/homeassistant/components/media_player/__init__.py", line 1351, in websocket_browse_media payload = await player.async_browse_media(media_content_type, media_content_id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/sonos/media_player.py", line 802, in async_browse_media return await media_browser.async_browse_media( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<6 lines>... ) ^ File "/usr/src/homeassistant/homeassistant/components/sonos/media_browser.py", line 160, in async_browse_media return await spotify.async_browse_media( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ hass, media_content_type, media_content_id, can_play_artist=False ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/src/homeassistant/homeassistant/components/spotify/browse_media.py", line 248, in async_browse_media result = await async_browse_media_internal( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/src/homeassistant/homeassistant/components/spotify/browse_media.py", line 284, in async_browse_media_internal response = await build_item_response( ^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/usr/src/homeassistant/homeassistant/components/spotify/browse_media.py", line 354, in build_item_response if playlist := await spotify.get_playlist(media_content_id): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.14/site-packages/spotifyaio/spotify.py", line 84, in wrapper return await func(self, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.14/site-packages/spotifyaio/spotify.py", line 446, in get_playlist return Playlist.from_json(response) ~~~~~~~~~~~~~~~~~~^^^^^^^^^^ File "<string>", line 88, in __mashumaro_from_json__ mashumaro.exceptions.InvalidFieldValue: Field "items" of type PlaylistTracks in Playlist has invalid value {'href': 'https://api.spotify.com/v1/playlists/5PGMD89KTrXmujCaTMveAo/items?offset=0&limit=100&additional_types=track', 'items': [{'added_at': '2026-03-18T03:26:01Z', 'added_by': {'external_urls': {'spotify': 'https://open.spotify.com/user/31ghv3aa4p7ittz3axw4vw3adbvu'}, 'href': 'https://api.spotify.com/v1/users/31ghv3aa4p7ittz3axw4vw3adbvu', 'id': '31ghv3aa4p7ittz3axw4vw3adbvu', 'type': 'user', 'uri': 'spotify:user:31ghv3aa4p7ittz3axw4vw3adbvu'}, 'is_local': False, 'primary_color': None, 'item': {'is_playable': True, 'explicit': False, 'type': 'track', 'episode': False, 'track': True, 'album': {'is_playable': True, 'type': 'album', 'album_type': 'album', 'href': 'https://api.spotify.com/v1/albums/5EyIDBAqhnlkAHqvPRwdbX', 'id': '5EyIDBAqhnlkAHqvPRwdbX', 'images': [{'url': 'https://i.scdn.co/image/ab67616d0000b2734509204d0860cc0cc67e83dc', 'width': 640, 'height': 640}, {'url': 'https://i.scdn.co/image/ab67616d00001e024509204d0860cc0cc67e83dc', 'width': 300, 'height': 300}, {'url': 'https://i.scdn.co/image/ab67616d000048514509204d0860cc0cc67e83dc', 'width': 64, 'height': 64}], 'name': 'Led Zeppelin IV (Remaster)', 'release_date': '1971-11-08', 'release_date_precision': 'day', 'uri': 'spotify:album:5EyIDBAqhnlkAHqvPRwdbX', 'artists': [{'external_urls': {'spotify': 'https://open.spotify.com/artist/36QJpDe2go2KgaRleHCDTp'}, 'href': 'https://api.spotify.com/v1/artists/36QJpDe2go2KgaRleHCDTp', 'id': '36QJpDe2go2KgaRleHCDTp', 'name': 'Led Zeppelin', 'type': 'artist', 'uri': 'spotify:artist:36QJpDe2go2KgaRleHCDTp'}], 'external_urls': {'spotify': 'https://open.spotify.com/album/5EyIDBAqhnlkAHqvPRwdbX'}, 'total_tracks': 8}, 'artists': [{'external_urls': {'spotify': 'https://open.spotify.com/artist/36QJpDe2go2KgaRleHCDTp'}, 'href': 'https://api.spotify.com/v1/artists/36QJpDe2go2KgaRleHCDTp', 'id': '36QJpDe2go2KgaRleHCDTp', 'name': 'Led Zeppelin', 'type': 'artist', 'uri': 'spotify:artist:36QJpDe2go2KgaRleHCDTp'}], 'disc_number': 1, 'track_number': 4, 'duration_ms': 482830, 'external_ids': {'isrc': 'USAT21300959'}, 'external_urls': {'spotify': 'https://open.spotify.com/track/0RO9W1xJoUEpq5MEelddFb'}, 'href': 'https://api.spotify.com/v1/tracks/0RO9W1xJoUEpq5MEelddFb', 'id': '0RO9W1xJoUEpq5MEelddFb', 'name': 'Stairway to Heaven - Remaster', 'uri': 'spotify:track:0RO9W1xJoUEpq5MEelddFb', 'is_local': False}, 'video_thumbnail': {'url': None}}, {'added_at': '2026-01-08T18:37:20Z', 'added_by': {'external_urls': {'spotify': 'https://open.spotify.com/user/31ghv3aa4p7ittz3axw4vw3adbvu'}, 'href': 'https://api.spotify.com/v1/users/31ghv3aa4p7ittz3axw4vw3adbvu', 'id': '31ghv3aa4p7ittz3axw4vw3adbvu', 'type': 'user', 'uri': 'spotify:user:31ghv3aa4p7ittz3axw4vw3adbvu'}, 'is_local': False, 'primary_color': None, 'item': {'is_playable': True, 'explicit': False, 'type': 'track', 'episode': False, 'track': True, 'album': {'is_playable': True, 'type': 'album', 'album_type': 'single', 'href': 'https://api.spotify.com/v1/albums/5nwQtsWkXgDKY6x543wqv3', 'id': '5nwQtsWkXgDKY6x543wqv3', 'images': [{'url': 'https://i.scdn.co/image/ab67616d0000b273d48d3d0a55f6b1dfa5decbbf', 'width': 640, 'height': 640}, {'url': 'https://i.scdn.co/image/ab67616d00001e02d48d3d0a55f6b1dfa5decbbf', 'width': 300, 'height': 300}, {'url': 'https://i.scdn.co/image/ab67616d00004851d48d3d0a55f6b1dfa5decbbf', 'width': 64, 'height': 64}], 'name': "Satan's a Woman / I Am a Witch", 'release_date': '2020-06-17', 'release_date_precision': 'day', 'uri': 'spotify:album:5nwQtsWkXgDKY6x543wqv3', 'artists': [{'external_urls': {'spotify': 'https://open.spotify.com/artist/5NYEE4kgrEZPlM3DxUsTyc'}, 'href': 'https://api.spotify.com/v1/artists/5NYEE4kgrEZPlM3DxUsTyc', 'id': '5NYEE4kgrEZPlM3DxUsTyc', 'name': 'Twin Temple', 'type': 'artist', 'uri': 'spotify:artist:5NYEE4kgrEZPlM3DxUsTyc'}], 'external_urls': {'spotify': 'https://open.spotify.com/album/5nwQtsWkXgDKY6x543wqv3'}, 'total_tracks': 2}, 'artists': [{'external_urls': {'spotify': 'https://open.spotify.com/artist/5NYEE4kgrEZPlM3DxUsTyc'}, 'href': 'https://api.spotify.com/v1/artists/5NYEE4kgrEZPlM3DxUsTyc', 'id': '5NYEE4kgrEZPlM3DxUsTyc', 'name': 'Twin Temple', 'type': 'artist', 'uri': 'spotify:artist:5NYEE4kgrEZPlM3DxUsTyc'}], 'disc_number': 1, 'track_number': 1, 'duration_ms': 170945, 'external_ids': {'isrc': 'GBMLU1923701'}, 'external_urls': {'spotify': 'https://open.spotify.com/track/3Ip8cDiALtHFl3HW434Qss'}, 'href': 'https://api.spotify.com/v1/tracks/3Ip8cDiALtHFl3HW434Qss', 'id': '3Ip8cDiALtHFl3HW434Qss', 'name': "Satan's a Woman", 'uri': 'spotify:track:3Ip8cDiALtHFl3HW434Qss', 'is_local': False}, 'video_thumbnail': {'url': None}}, {'added_at': '2026-01-10T19:49:24Z', 'added_by': {'external_urls': {'spotify': 'https://open.spotify.com/user/31ghv3aa4p7ittz3axw4vw3adbvu'}, 'href': 'https://api.spotify.com/v1/users/31ghv3aa4p7ittz3axw4vw3adbvu', 'id': '31ghv3aa4p7ittz3axw4vw3adbvu', 'type': 'user', 'uri': 'spotify:user:31ghv3aa4p7ittz3axw4vw3adbvu'}, 'is_local': False, 'primary_color': None, 'item': {'is_playable': True, 'explicit': False, 'type': 'track', 'episode': False, 'track': True, 'album': {'is_playable': True, 'type': 'album', 'album_type': 'album', 'href': 'https://api.spotify.com/v1/albums/0Xwkx2TLFwRcoK0OWQ0Msa', 'id': '0Xwkx2TLFwRcoK0OWQ0Msa', 'images': [{'url': 'https://i.scdn.co/image/ab67616d0000b2733c534611bd3658006378a2d7', 'width': 640, 'height': 640}, {'url': 'https://i.scdn.co/image/ab67616d00001e023c534611bd3658006378a2d7', 'width': 300, 'height': 300}, {'url': 'https://i.scdn.co/image/ab67616d000048513c534611bd3658006378a2d7', 'width': 64, 'height': 64}], 'name': 'The Animals', 'release_date': '1964-01-01', 'release_date_precision': 'day', 'uri': 'spotify:album:0Xwkx2TLFwRcoK0OWQ0Msa', 'artists': [{'external_urls': {'spotify': 'https://open.spotify.com/artist/3ICflSq6ZgYAIrm2CTkfVP'}, 'href': 'https://api.spotify.com/v1/artists/3ICflSq6ZgYAIrm2CTkfVP', 'id': '3ICflSq6ZgYAIrm2CTkfVP', 'name': 'The Animals', 'type': 'artist', 'uri': 'spotify:artist:3ICflSq6ZgYAIrm2CTkfVP'}], 'external_urls': {'spotify': 'https://open.spotify.com/album/0Xwkx2TLFwRcoK0OWQ0Msa'}, 'total_tracks': 13}, 'artists': [{'external_urls': {'spotify': 'https://open.spotify.com/artist/3ICflSq6ZgYAIrm2CTkfVP'}, 'href': 'https://api.spotify.com/v1/artists/3ICflSq6ZgYAIrm2CTkfVP', 'id': '3ICflSq6ZgYAIrm2CTkfVP', 'name': 'The Animals', 'type': 'artist', 'uri': 'spotify:artist:3ICflSq6ZgYAIrm2CTkfVP'}], 'disc_number': 1, 'track_number': 1, 'duration_ms': 271280, 'external_ids': {'isrc': 'USA176460010'}, 'external_urls': {'spotify': 'https://open.spotify.com/track/7BY005dacJkbO6EPiOh2wb'}, 'href': 'https://api.spotify.com/v1/tracks/7BY005dacJkbO6EPiOh2wb', 'id': '7BY005dacJkbO6EPiOh2wb', 'name': 'House Of The Rising Sun', 'uri': 'spotify:track:7BY005dacJkbO6EPiOh2wb', 'is_local': False}, 'video_thumbnail': {'url': None}}, {'added_at': '2026-01-10T19:49:28Z', 'added_by': {'external_urls': {'spotify': 'https://open.spotify.com/user/31ghv3aa4p7ittz3axw4vw3adbvu'}, 'href': 'https://api.spotify.com/v1/users/31ghv3aa4p7ittz3axw4vw3adbvu', 'id': '31ghv3aa4p7ittz3axw4vw3adbvu', 'type': 'user', 'uri': 'spotify:user:31ghv3aa4p7ittz3axw4vw3adbvu'}, 'is_local': False, 'primary_color': None, 'item': {'is_playable': True, 'explicit': False, 'type': 'track', 'episode': False, 'track': True, 'album': {'is_playable': True, 'type': 'album', 'album_type': 'compilation', 'href': 'https://api.spotify.com/v1/albums/18fOLsMG8Msf1DEaW0E71K', 'id': '18fOLsMG8Msf1DEaW0E71K', 'images': [{'url': 'https://i.scdn.co/image/ab67616d0000b27313cbe3e4dfa81fe5b91f2f1c', 'width': 640, 'height': 640}, {'url': 'https://i.scdn.co/image/ab67616d00001e0213cbe3e4dfa81fe5b91f2f1c', 'width': 300, 'height': 300}, {'url': 'https://i.scdn.co/image/ab67616d0000485113cbe3e4dfa81fe5b91f2f1c', 'width': 64, 'height': 64}], 'name': 'Call Me', 'release_date': '2004-01-01', 'release_date_precision': 'day', 'uri': 'spotify:album:18fOLsMG8Msf1DEaW0E71K', 'artists': [{'external_urls': {'spotify': 'https://open.spotify.com/artist/4tpUmLEVLCGFr93o8hFFIB'}, 'href': 'https://api.spotify.com/v1/artists/4tpUmLEVLCGFr93o8hFFIB', 'id': '4tpUmLEVLCGFr93o8hFFIB', 'name': 'Blondie', 'type': 'artist', 'uri': 'spotify:artist:4tpUmLEVLCGFr93o8hFFIB'}], 'external_urls': {'spotify': 'https://open.spotify.com/album/18fOLsMG8Msf1DEaW0E71K'}, 'total_tracks': 5}, 'artists': [{'external_urls': {'spotify': 'https://open.spotify.com/artist/4tpUmLEVLCGFr93o8hFFIB'}, 'href': 'https://api.spotify.com/v1/artists/4tpUmLEVLCGFr93o8hFFIB', 'id': '4tpUmLEVLCGFr93o8hFFIB', 'name': 'Blondie', 'type': 'artist', 'uri': 'spotify:artist:4tpUmLEVLCGFr93o8hFFIB'}], 'disc_number': 1, 'track_number': 1, 'duration_ms': 212226, 'external_ids': {'isrc': 'USCH39800016'}, 'external_urls': {'spotify': 'https://open.spotify.com/track/7HKxTNVlkHsfMLhigmhC0I'}, 'href': 'https://api.spotify.com/v1/tracks/7HKxTNVlkHsfMLhigmhC0I', 'id': '7HKxTNVlkHsfMLhigmhC0I', 'name': 'Call Me', 'uri': 'spotify:track:7HKxTNVlkHsfMLhigmhC0I', 'is_local': False}, 'video_thumbnail': {'url': None}}, {'added_at': '2026-01-08T18:37:14Z', 'added_by': {'external_urls': {'spotify': 'https://open.spotify.com/user/31ghv3aa4p7ittz3axw4vw3adbvu'}, 'href': 'https://api.spotify.com/v1/users/31ghv3aa4p7ittz3axw4vw3adbvu', 'id': '31ghv3aa4p7ittz3axw4vw3adbvu', 'type': 'user', 'uri': 'spotify:user:31ghv3aa4p7ittz3axw4vw3adbvu'}, 'is_local': False, 'primary_color': None, 'item': {'is_playable': True, 'explicit': False, 'type': 'track', 'episode': False, 'track': True, 'album': {'is_playable': True, 'type': 'album', 'album_type': 'album', 'href': 'https://api.spotify.com/v1/albums/6eUW0wxWtzkFdaEFsTJto6', 'id': '6eUW0wxWtzkFdaEFsTJto6', 'images': [{'url': 'https://i.scdn.co/image/ab67616d0000b27315ebbedaacef61af244262a8', 'width': 640, 'height': 640}, {'url': 'https://i.scdn.co/image/ab67616d00001e0215ebbedaacef61af244262a8', 'width': 300, 'height': 300}, {'url': 'https://i.scdn.co/image/ab67616d0000485115ebbedaacef61af244262a8', 'width': 64, 'height': 64}], 'name': 'Whenever You Need Somebody', 'release_date': '1987-11-12', 'release_date_precision': 'day', 'uri': 'spotify:album:6eUW0wxWtzkFdaEFsTJto6', 'artists': [{'external_urls': {'spotify': 'https://open.spotify.com/artist/0gxyHStUsqpMadRV0Di1Qt'}, 'href': 'https://api.spotify.com/v1/artists/0gxyHStUsqpMadRV0Di1Qt', 'id': '0gxyHStUsqpMadRV0Di1Qt', 'name': 'Rick Astley', 'type': 'artist', 'uri': 'spotify:artist:0gxyHStUsqpMadRV0Di1Qt'}], 'external_urls': {'spotify': 'https://open.spotify.com/album/6eUW0wxWtzkFdaEFsTJto6'}, 'total_tracks': 10}, 'artists': [{'external_urls': {'spotify': 'https://open.spotify.com/artist/0gxyHStUsqpMadRV0Di1Qt'}, 'href': 'https://api.spotify.com/v1/artists/0gxyHStUsqpMadRV0Di1Qt', 'id': '0gxyHStUsqpMadRV0Di1Qt', 'name': 'Rick Astley', 'type': 'artist', 'uri': 'spotify:artist:0gxyHStUsqpMadRV0Di1Qt'}], 'disc_number': 1, 'track_number': 1, 'duration_ms': 213573, 'external_ids': {'isrc': 'GBARL9300135'}, 'external_urls': {'spotify': 'https://open.spotify.com/track/4PTG3Z6ehGkBFwjybzWkR8'}, 'href': 'https://api.spotify.com/v1/tracks/4PTG3Z6ehGkBFwjybzWkR8', 'id': '4PTG3Z6ehGkBFwjybzWkR8', 'name': 'Never Gonna Give You Up', 'uri': 'spotify:track:4PTG3Z6ehGkBFwjybzWkR8', 'is_local': False}, 'video_thumbnail': {'url': None}}], 'limit': 100, 'next': None, 'offset': 0, 'previous': None, 'total': 5}Additional information
FWIW I searched for other issues that mentioned similar errors but none were open & recent. This is my first issue in the home-assistant org so I'm not very confident I've done everything right. Thanks for reading this (and maintaining such an awesome piece of OSS)! ❤️