mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 06:37:52 +00:00
This reverts commit 1bc63a61be8057850f68e0ff4e0c94563d5a41c9.
This commit is contained in:
parent
be2b5a4c3a
commit
327cb70bb8
@ -172,10 +172,12 @@ 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(options[CONF_ENCODING])
|
encoding: texttospeech.AudioEncoding = texttospeech.AudioEncoding[
|
||||||
gender: texttospeech.SsmlVoiceGender | None = texttospeech.SsmlVoiceGender(
|
options[CONF_ENCODING]
|
||||||
|
] # 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