Use read-only options in google cloud options flow (#129927)
This commit is contained in:
parent
7ce74cb5ec
commit
51d6948848
2 changed files with 3 additions and 3 deletions
|
@ -169,7 +169,7 @@ class GoogleCloudOptionsFlowHandler(OptionsFlow):
|
|||
)
|
||||
),
|
||||
**tts_options_schema(
|
||||
self.options, voices, from_config_flow=True
|
||||
self.config_entry.options, voices, from_config_flow=True
|
||||
).schema,
|
||||
vol.Optional(
|
||||
CONF_STT_MODEL,
|
||||
|
@ -182,6 +182,6 @@ class GoogleCloudOptionsFlowHandler(OptionsFlow):
|
|||
),
|
||||
}
|
||||
),
|
||||
self.options,
|
||||
self.config_entry.options,
|
||||
),
|
||||
)
|
||||
|
|
|
@ -52,7 +52,7 @@ async def async_tts_voices(
|
|||
|
||||
|
||||
def tts_options_schema(
|
||||
config_options: dict[str, Any],
|
||||
config_options: Mapping[str, Any],
|
||||
voices: dict[str, list[str]],
|
||||
from_config_flow: bool = False,
|
||||
) -> vol.Schema:
|
||||
|
|
Loading…
Add table
Reference in a new issue