Use stepid title if present for progress flow (#7710)

This commit is contained in:
Joakim Sørensen 2020-11-17 14:33:13 +01:00 committed by GitHub
parent 473e381d75
commit af1518e924
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -162,7 +162,11 @@ export const showConfigFlowDialog = (
},
renderShowFormProgressHeader(hass, step) {
return hass.localize(`component.${step.handler}.title`);
return (
hass.localize(
`component.${step.handler}.config.step.${step.step_id}.title`
) || hass.localize(`component.${step.handler}.title`)
);
},
renderShowFormProgressDescription(hass, step) {