When browsing media on a teufel_raumfeld device in HA 2024.1, you get the following 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 1298, in websocket_browse_media
if MediaPlayerEntityFeature.BROWSE_MEDIA not in player.supported_features:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: argument of type 'int' is not iterable
Reason is that the teufel_raumfeld implementation still returns the old int-based constants for the supported_features method here.
According to the docs, these int contents have been removed in 2024.1, so this is why this error occurs. We are forced to use the MediaPlayerEntityFeature enum according to the docs.
I think what needs to be done is in the media_player.py of this repo here, we need to replace
When browsing media on a
teufel_raumfeld
device in HA 2024.1, you get the following error:Reason is that the
teufel_raumfeld
implementation still returns the old int-based constants for thesupported_features
method here.According to the docs, these int contents have been removed in 2024.1, so this is why this error occurs. We are forced to use the
MediaPlayerEntityFeature
enum according to the docs.I think what needs to be done is in the
media_player.py
of this repo here, we need to replacewith something like
Similar issues might come up from other constants as all of these integer based constants seem to have been retired.