Improve description in Workday config flow (#94945)

This commit is contained in:
G Johansson 2023-06-21 11:17:36 +02:00 committed by GitHub
parent 60b78f4648
commit aec946e93a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 2 deletions

View file

@ -220,7 +220,10 @@ class WorkdayConfigFlow(ConfigFlow, domain=DOMAIN):
step_id="options", step_id="options",
data_schema=new_schema, data_schema=new_schema,
errors=errors, errors=errors,
description_placeholders={"name": self.data[CONF_NAME]}, description_placeholders={
"name": self.data[CONF_NAME],
"country": self.data[CONF_COUNTRY],
},
) )
@ -277,6 +280,10 @@ class WorkdayOptionsFlowHandler(OptionsFlowWithConfigEntry):
step_id="init", step_id="init",
data_schema=new_schema, data_schema=new_schema,
errors=errors, errors=errors,
description_placeholders={
"name": self.options[CONF_NAME],
"country": self.options[CONF_COUNTRY],
},
) )

View file

@ -12,7 +12,7 @@
} }
}, },
"options": { "options": {
"description": "Set workday options for {name}", "description": "Set additional options for {name} configured for country {country}",
"data": { "data": {
"excludes": "Excludes", "excludes": "Excludes",
"days_offset": "Offset", "days_offset": "Offset",
@ -39,6 +39,7 @@
"options": { "options": {
"step": { "step": {
"init": { "init": {
"description": "Change additional options for {name} configured for country {country}",
"data": { "data": {
"excludes": "[%key:component::workday::config::step::options::data::excludes%]", "excludes": "[%key:component::workday::config::step::options::data::excludes%]",
"days_offset": "[%key:component::workday::config::step::options::data::days_offset%]", "days_offset": "[%key:component::workday::config::step::options::data::days_offset%]",