mirror of
https://github.com/home-assistant/core.git
synced 2025-04-26 02:07:54 +00:00
Fix enum lookup (#125220)
This commit is contained in:
parent
5c35ccb9ca
commit
1bc63a61be
@ -172,12 +172,10 @@ class BaseGoogleCloudProvider:
|
|||||||
_LOGGER.error("Error: %s when validating options: %s", err, options)
|
_LOGGER.error("Error: %s when validating options: %s", err, options)
|
||||||
return None, None
|
return None, None
|
||||||
|
|
||||||
encoding: texttospeech.AudioEncoding = texttospeech.AudioEncoding[
|
encoding = texttospeech.AudioEncoding(options[CONF_ENCODING])
|
||||||
options[CONF_ENCODING]
|
gender: texttospeech.SsmlVoiceGender | None = texttospeech.SsmlVoiceGender(
|
||||||
] # type: ignore[misc]
|
|
||||||
gender: texttospeech.SsmlVoiceGender | None = texttospeech.SsmlVoiceGender[
|
|
||||||
options[CONF_GENDER]
|
options[CONF_GENDER]
|
||||||
] # type: ignore[misc]
|
)
|
||||||
voice = options[CONF_VOICE]
|
voice = options[CONF_VOICE]
|
||||||
if voice:
|
if voice:
|
||||||
gender = None
|
gender = None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user