Pass placeholders to config and option flow title (#15746)

This commit is contained in:
Erik Montnemery 2023-03-06 09:49:01 +01:00 committed by GitHub
parent 8e8fb4ea13
commit 40b9e62a87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -55,7 +55,8 @@ export const showConfigFlowDialog = (
renderShowFormStepHeader(hass, step) {
return (
hass.localize(
`component.${step.handler}.config.step.${step.step_id}.title`
`component.${step.handler}.config.step.${step.step_id}.title`,
step.description_placeholders
) || hass.localize(`component.${step.handler}.title`)
);
},

View File

@ -67,7 +67,8 @@ export const showOptionsFlowDialog = (
renderShowFormStepHeader(hass, step) {
return (
hass.localize(
`component.${configEntry.domain}.options.step.${step.step_id}.title`
`component.${configEntry.domain}.options.step.${step.step_id}.title`,
step.description_placeholders
) || hass.localize(`ui.dialogs.options_flow.form.header`)
);
},