mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 06:17:07 +00:00
parent
12129f0e6a
commit
aa28e6727d
@ -164,7 +164,7 @@ class AmazonPollyProvider(Provider):
|
||||
"""Request TTS file from Polly."""
|
||||
voice_id = options.get(CONF_VOICE, self.default_voice)
|
||||
voice_in_dict = self.all_voices.get(voice_id)
|
||||
if language is not voice_in_dict.get('LanguageCode'):
|
||||
if language != voice_in_dict.get('LanguageCode'):
|
||||
_LOGGER.error("%s does not support the %s language",
|
||||
voice_id, language)
|
||||
return (None, None)
|
||||
|
Loading…
x
Reference in New Issue
Block a user