Improve description in Workday config flow (#94945)
This commit is contained in:
parent
60b78f4648
commit
aec946e93a
2 changed files with 10 additions and 2 deletions
|
@ -220,7 +220,10 @@ class WorkdayConfigFlow(ConfigFlow, domain=DOMAIN):
|
|||
step_id="options",
|
||||
data_schema=new_schema,
|
||||
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",
|
||||
data_schema=new_schema,
|
||||
errors=errors,
|
||||
description_placeholders={
|
||||
"name": self.options[CONF_NAME],
|
||||
"country": self.options[CONF_COUNTRY],
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
}
|
||||
},
|
||||
"options": {
|
||||
"description": "Set workday options for {name}",
|
||||
"description": "Set additional options for {name} configured for country {country}",
|
||||
"data": {
|
||||
"excludes": "Excludes",
|
||||
"days_offset": "Offset",
|
||||
|
@ -39,6 +39,7 @@
|
|||
"options": {
|
||||
"step": {
|
||||
"init": {
|
||||
"description": "Change additional options for {name} configured for country {country}",
|
||||
"data": {
|
||||
"excludes": "[%key:component::workday::config::step::options::data::excludes%]",
|
||||
"days_offset": "[%key:component::workday::config::step::options::data::days_offset%]",
|
||||
|
|
Loading…
Add table
Reference in a new issue