Improve handling of roon radio data (#39659)
parent
05e15dc318
commit
08d5175d05
homeassistant/components/roon
|
@ -209,7 +209,7 @@ class RoonDevice(MediaPlayerEntity):
|
|||
media_artist = now_playing_data["three_line"]["line2"]
|
||||
media_album_name = now_playing_data["three_line"]["line3"]
|
||||
media_position = convert(now_playing_data["seek_position"], int, 0)
|
||||
media_duration = convert(now_playing_data["length"], int, 0)
|
||||
media_duration = convert(now_playing_data.get("length"), int, 0)
|
||||
image_id = now_playing_data.get("image_key")
|
||||
except KeyError:
|
||||
# catch KeyError
|
||||
|
|
Loading…
Reference in New Issue