mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Improve handling of roon radio data (#39659)
This commit is contained in:
parent
05e15dc318
commit
08d5175d05
@ -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…
x
Reference in New Issue
Block a user