B5r1oJ0A9G / teufel_raumfeld

Integration for Teufel smart speaker (aka Raumfeld Multiroom) into https://www.home-assistant.io/.
GNU General Public License v3.0
30 stars 6 forks source link

Media browser may crash in "My Music" #51

Closed B5r1oJ0A9G closed 1 year ago

B5r1oJ0A9G commented 1 year ago

At the tiem of writing observed for "Artists", "Genres" and "Composers":

2023-07-25 01:50:50.892 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140074998355136] Error handling message: Unknown error (unknown_error) test from 127.0.0.1 (Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0)
Traceback (most recent call last):
  File "/var/home/marc/Development/github/home-assistant/core/homeassistant/components/websocket_api/decorators.py", line 26, in _handle_async_response
    await func(hass, connection, msg)
  File "/var/home/marc/Development/github/home-assistant/core/homeassistant/components/media_player/__init__.py", line 1224, in websocket_browse_media
    payload = await player.async_browse_media(media_content_type, media_content_id)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/home/marc/Development/github/home-assistant/core/config/custom_components/teufel_raumfeld/media_player.py", line 638, in async_browse_media
    children = await self._raumfeld.async_browse_media(object_id, BROWSE_CHILDREN)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/home/marc/Development/github/home-assistant/core/config/custom_components/teufel_raumfeld/__init__.py", line 442, in async_browse_media
    if DIDL_VALUE in entry[DIDL_ELEM_TITLE]:
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: argument of type 'NoneType' is not iterable