From c895f1f1db26697fcd096f57cf3ce39662b739a7 Mon Sep 17 00:00:00 2001 From: Andrey Date: Thu, 3 Aug 2017 17:39:11 +0300 Subject: [PATCH] When Sonos gets a tts source - dont't show an image (#8777) --- homeassistant/components/media_player/sonos.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/homeassistant/components/media_player/sonos.py b/homeassistant/components/media_player/sonos.py index e51f3d70f2c..63d27299aa7 100644 --- a/homeassistant/components/media_player/sonos.py +++ b/homeassistant/components/media_player/sonos.py @@ -695,6 +695,9 @@ class SonosDevice(MediaPlayerDevice): if url in ('', 'NOT_IMPLEMENTED', None): if fallback_uri in ('', 'NOT_IMPLEMENTED', None): return None + if fallback_uri.find('tts_proxy') > 0: + # If the content is a tts don't try to fetch an image from it. + return None return 'http://{host}:{port}/getaa?s=1&u={uri}'.format( host=self._player.ip_address, port=1400,