mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 09:47:13 +00:00
Merge pull request #5558 from andrey-git/sonos
Fix empty image when Sonos is doing nothing.
This commit is contained in:
commit
f25b34cafe
@ -655,6 +655,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