mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 12:45:28 +02:00
Fix empty image when Sonos is doing nothing.
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user