home-assistant / frontend

:lollipop: Frontend for Home Assistant
https://demo.home-assistant.io
Other
4.02k stars 2.75k forks source link

Spotify Media Browser - clicking album art always produces "Unknown error" 0.115.0b1 #6871

Closed SeanPM5 closed 4 years ago

SeanPM5 commented 4 years ago

Checklist

The problem

I reported https://github.com/home-assistant/core/issues/39778 yesterday and it was fixed today in b1. But after installing b1 it seems that clicking anywhere on the album art no longer work like it did in b0. If I do that I get "Unknown error" all the time.

You can never drill down into albums anymore. Can only click on the small play button overlays now (red boxes in below image) to play it, rather than browsing the contents of a playlist or album. That feels like maybe a frontend issue but not sure (please move to core if not).

image

Expected behavior

Steps to reproduce

  1. Open Spotify media browser
  2. Click on any category, click on an album. Doesn't work unless you specifically click the play button icon now.

Environment

State of relevant entities

Problem-relevant configuration

Logger: homeassistant.components.websocket_api.http.connection.547536551072
Source: components/spotify/media_player.py:614
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 7:08:22 PM (2 occurrences)
Last logged: 7:11:50 PM

Error handling message: Unknown error
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 21, in _handle_async_response
    await func(hass, connection, msg)
  File "/usr/src/homeassistant/homeassistant/components/media_player/__init__.py", line 1002, in websocket_browse_media
    payload = await player.async_browse_media(media_content_type, media_content_id)
  File "/usr/src/homeassistant/homeassistant/components/spotify/media_player.py", line 445, in async_browse_media
    response = await self.hass.async_add_executor_job(
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/spotify/media_player.py", line 574, in build_item_response
    response["children"].append(item_payload(item))
  File "/usr/src/homeassistant/homeassistant/components/spotify/media_player.py", line 614, in item_payload
    "media_class": CONTENT_TYPE_MEDIA_CLASS[media_type],
KeyError: 'track'

Javascript errors shown in your browser console/inspector

Additional information

SeanPM5 commented 4 years ago

More things noticed:

bramkragten commented 4 years ago

That's weird... Tested it yesterday

bramkragten commented 4 years ago

https://github.com/home-assistant/core/pull/39841