Add fallback for renderExternalStepHeader

This commit is contained in:
Ludeeus 2020-09-09 10:16:54 +00:00
parent 07569f10b5
commit b3a763a48d

View File

@ -97,8 +97,13 @@ export const showConfigFlowDialog = (
}, },
renderExternalStepHeader(hass, step) { renderExternalStepHeader(hass, step) {
return hass.localize( return (
`component.${step.handler}.config.step.${step.step_id}.title` hass.localize(
`component.${step.handler}.config.${step.step_id}.title`
) ||
hass.localize(
"ui.panel.config.integrations.config_flow.external_step.open_site"
)
); );
}, },