Fix description and title of options flow (#4910)

This commit is contained in:
Bram Kragten 2020-02-18 11:27:27 +01:00 committed by GitHub
parent 099430238c
commit 52ae01ea74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,7 +47,7 @@ export const showOptionsFlowDialog = (
renderShowFormStepHeader(hass, step) {
return (
hass.localize(
`component.${step.handler}.options.step.${step.step_id}.title`
`component.${configEntry.domain}.options.step.${step.step_id}.title`
) || hass.localize(`ui.dialogs.options_flow.form.header`)
);
},
@ -55,7 +55,7 @@ export const showOptionsFlowDialog = (
renderShowFormStepDescription(hass, step) {
const description = localizeKey(
hass.localize,
`component.${step.handler}.config.step.${step.step_id}.description`,
`component.${configEntry.domain}.options.step.${step.step_id}.description`,
step.description_placeholders
);
return description