Use read-only options in google cloud options flow (#129927)

This commit is contained in:
epenet 2024-11-06 15:15:35 +01:00 committed by GitHub
parent 7ce74cb5ec
commit 51d6948848
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -169,7 +169,7 @@ class GoogleCloudOptionsFlowHandler(OptionsFlow):
) )
), ),
**tts_options_schema( **tts_options_schema(
self.options, voices, from_config_flow=True self.config_entry.options, voices, from_config_flow=True
).schema, ).schema,
vol.Optional( vol.Optional(
CONF_STT_MODEL, CONF_STT_MODEL,
@ -182,6 +182,6 @@ class GoogleCloudOptionsFlowHandler(OptionsFlow):
), ),
} }
), ),
self.options, self.config_entry.options,
), ),
) )

View file

@ -52,7 +52,7 @@ async def async_tts_voices(
def tts_options_schema( def tts_options_schema(
config_options: dict[str, Any], config_options: Mapping[str, Any],
voices: dict[str, list[str]], voices: dict[str, list[str]],
from_config_flow: bool = False, from_config_flow: bool = False,
) -> vol.Schema: ) -> vol.Schema: