mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 09:47:13 +00:00
When Sonos gets a tts source - dont't show an image (#8777)
This commit is contained in:
parent
944af9cd7d
commit
c895f1f1db
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user