Onboard Google Translate (#95352)

This commit is contained in:
Martin Hjelmare 2023-06-27 13:12:25 +02:00 committed by GitHub
parent 2c9213baa1
commit 4d2fa5bdbc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 49 additions and 5 deletions

View file

@ -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},
)