mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Fix empty image when Sonos is doing nothing.
This commit is contained in:
parent
f54f68903d
commit
58e063a1b6
@ -653,6 +653,8 @@ class SonosDevice(MediaPlayerDevice):
|
||||
|
||||
def _format_media_image_url(self, url, fallback_uri):
|
||||
if url in ('', 'NOT_IMPLEMENTED', None):
|
||||
if fallback_uri in ('', 'NOT_IMPLEMENTED', None):
|
||||
return None
|
||||
return 'http://{host}:{port}/getaa?s=1&u={uri}'.format(
|
||||
host=self._player.ip_address,
|
||||
port=1400,
|
||||
|
Loading…
x
Reference in New Issue
Block a user