Mark titles in config flows optional (#5584)

This commit is contained in:
Paulus Schoutsen 2020-04-22 01:51:53 -07:00 committed by GitHub
parent c72bb5b22b
commit a49c84032b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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