mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Fix Sonos radio metadata processing with missing data (#67141)
This commit is contained in:
parent
43b847220e
commit
e3e962691c
@ -169,7 +169,8 @@ class SonosMedia:
|
||||
self.queue_size = int(queue_size)
|
||||
|
||||
if audio_source == MUSIC_SRC_RADIO:
|
||||
self.channel = et_uri_md.title
|
||||
if et_uri_md:
|
||||
self.channel = et_uri_md.title
|
||||
|
||||
if ct_md and ct_md.radio_show:
|
||||
radio_show = ct_md.radio_show.split(",")[0]
|
||||
|
Loading…
x
Reference in New Issue
Block a user