mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 02:37:08 +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 url in ('', 'NOT_IMPLEMENTED', None):
|
||||||
if fallback_uri in ('', 'NOT_IMPLEMENTED', None):
|
if fallback_uri in ('', 'NOT_IMPLEMENTED', None):
|
||||||
return 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(
|
return 'http://{host}:{port}/getaa?s=1&u={uri}'.format(
|
||||||
host=self._player.ip_address,
|
host=self._player.ip_address,
|
||||||
port=1400,
|
port=1400,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user