Improve data description and title for Cookidoo integration (#133106)

* fix data description typo for cookidoo

* use placeholder for cookidoo as it is non-translatable

* set title of language step

* fix for reauth

* fix reauth
This commit is contained in:
Cyrill Raccaud 2024-12-13 13:34:17 +01:00 committed by GitHub
parent b4e065d331
commit fe46fd24bd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 8 deletions

View File

@ -79,6 +79,7 @@ class CookidooConfigFlow(ConfigFlow, domain=DOMAIN):
),
suggested_values=user_input,
),
description_placeholders={"cookidoo": "Cookidoo"},
errors=errors,
)
@ -99,6 +100,7 @@ class CookidooConfigFlow(ConfigFlow, domain=DOMAIN):
return self.async_show_form(
step_id="language",
data_schema=vol.Schema(self.LANGUAGE_DATA_SCHEMA),
description_placeholders={"cookidoo": "Cookidoo"},
errors=errors,
)
@ -133,6 +135,7 @@ class CookidooConfigFlow(ConfigFlow, domain=DOMAIN):
data_schema=vol.Schema(AUTH_DATA_SCHEMA),
suggested_values={CONF_EMAIL: reauth_entry.data[CONF_EMAIL]},
),
description_placeholders={"cookidoo": "Cookidoo"},
errors=errors,
)

View File

@ -2,30 +2,30 @@
"config": {
"step": {
"user": {
"title": "Login to Cookidoo",
"title": "Login to {cookidoo}",
"data": {
"email": "[%key:common::config_flow::data::email%]",
"password": "[%key:common::config_flow::data::password%]",
"country": "Country"
},
"data_description": {
"email": "Email used access your Cookidoo account.",
"password": "Password used access your Cookidoo account.",
"country": "Pick your language for the Cookidoo content."
"email": "Email used to access your {cookidoo} account.",
"password": "Password used to access your {cookidoo} account.",
"country": "Pick your language for the {cookidoo} content."
}
},
"language": {
"title": "Login to Cookidoo",
"title": "Set language for {cookidoo}",
"data": {
"language": "[%key:common::config_flow::data::language%]"
},
"data_description": {
"language": "Pick your language for the Cookidoo content."
"language": "Pick your language for the {cookidoo} content."
}
},
"reauth_confirm": {
"title": "Login again to Cookidoo",
"description": "Please log in to Cookidoo again to continue using this integration.",
"title": "Login again to {cookidoo}",
"description": "Please log in to {cookidoo} again to continue using this integration.",
"data": {
"email": "[%key:common::config_flow::data::email%]",
"password": "[%key:common::config_flow::data::password%]"