Use the "Bang&Olufsen" mobile app to make the device play music from a radio station via tunein
Confirm that the radio station logo is displayed as expected in Home Assistant
Use the "Bang&Olufsen" mobile app to change the radio station
Expected result:
Station logo and name updated in the Home Assistant UI.
Actual result:
Station logo and name is not updated and the Home Assistant log shows the following:
2019-05-17 15:37:58 ERROR (MainThread) [custom_components.beoplay.media_player] Unexpected error in Beoplay M5
Traceback (most recent call last):
File "/Users/tlk/.homeassistant/custom_components/beoplay/media_player.py", line 171, in _start_poll_command
await self.async_update_status()
File "/Users/tlk/.homeassistant/custom_components/beoplay/media_player.py", line 219, in async_update_status
self._speaker.getMusicInfo(data_json)
File "/Users/tlk/projects/home-assistant/venv/lib/python3.7/site-packages/beoplay/__init__.py", line 125, in getMusicInfo
if data["notification"]["data"]["liveDescription"]:
KeyError: 'liveDescription'
How to reproduce:
Expected result: Station logo and name updated in the Home Assistant UI.
Actual result: Station logo and name is not updated and the Home Assistant log shows the following: