fix not showing base error bug (#19340)

This commit is contained in:
AlexandrErohin 2024-01-15 17:38:51 +03:00 committed by GitHub
parent 894205eff7
commit 7209ed055a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -110,9 +110,11 @@ export const showOptionsFlowDialog = (
},
renderShowFormStepFieldError(hass, step, error) {
return hass.localize(
`component.${configEntry.domain}.options.error.${error}`,
step.description_placeholders
return (
hass.localize(
`component.${configEntry.domain}.options.error.${error}`,
step.description_placeholders
) || error
);
},