mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Avoid returning empty media_image_url string (#11557)
This relates to issue https://github.com/home-assistant/home-assistant/issues/11556
This commit is contained in:
parent
4883036789
commit
88161cd5c9
@ -186,7 +186,7 @@ class CastDevice(MediaPlayerDevice):
|
||||
|
||||
images = self.media_status.images
|
||||
|
||||
return images[0].url if images else None
|
||||
return images[0].url if images and images[0].url else None
|
||||
|
||||
@property
|
||||
def media_title(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user