Onboard Google Translate (#95352)
This commit is contained in:
parent
2c9213baa1
commit
4d2fa5bdbc
5 changed files with 49 additions and 5 deletions
|
@ -47,3 +47,12 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
|||
)
|
||||
|
||||
return self.async_show_form(step_id="user", data_schema=STEP_USER_DATA_SCHEMA)
|
||||
|
||||
async def async_step_onboarding(
|
||||
self, data: dict[str, Any] | None = None
|
||||
) -> FlowResult:
|
||||
"""Handle a flow initialized by onboarding."""
|
||||
return self.async_create_entry(
|
||||
title="Google Translate text-to-speech",
|
||||
data={CONF_LANG: DEFAULT_LANG, CONF_TLD: DEFAULT_TLD},
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue