Hello,
since a couple of weeks I am suddenly unable to play music via Home Assistant. This affects both local files through “Media” and MusicAssistant.
The logs show the following error:
Logger: homeassistant.components.websocket_api.http.connection
Quelle: components/websocket_api/commands.py:245
Integration: Home Assistant WebSocket API (Dokumentation, Probleme)
Erstmals aufgetreten: 19:41:18 (2 Vorkommnisse)
Zuletzt protokolliert: 19:41:22
[281471877582416] Unexpected exception
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 245, in handle_call_service
response = await hass.services.async_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<7 lines>...
)
^
File "/usr/src/homeassistant/homeassistant/core.py", line 2794, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2837, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1007, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
hass, entity, func, data, call.context
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1079, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/braviatv/media_player.py", line 265, in async_play_media
await self.coordinator.async_play_media(media_type, media_id, **kwargs)
File "/usr/src/homeassistant/homeassistant/components/braviatv/coordinator.py", line 58, in wrapper
await func(self, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/components/braviatv/coordinator.py", line 331, in async_play_media
raise ValueError(f"Invalid media type: {media_type}")
ValueError: Invalid media type: music
This was working before, however I can’t say which action broke the functionality for me.
I am hoping someone can help me here.
Kind regards