mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 03:36:44 +00:00
Allow placeholders in config and option flows (#9314)
This commit is contained in:
parent
377ebadc10
commit
ed4052365c
@ -90,7 +90,10 @@ export const showConfigFlowDialog = (
|
||||
},
|
||||
|
||||
renderShowFormStepFieldError(hass, step, error) {
|
||||
return hass.localize(`component.${step.handler}.config.error.${error}`);
|
||||
return hass.localize(
|
||||
`component.${step.handler}.config.error.${error}`,
|
||||
step.description_placeholders
|
||||
);
|
||||
},
|
||||
|
||||
renderExternalStepHeader(hass, step) {
|
||||
|
@ -88,9 +88,10 @@ export const showOptionsFlowDialog = (
|
||||
);
|
||||
},
|
||||
|
||||
renderShowFormStepFieldError(hass, _step, error) {
|
||||
renderShowFormStepFieldError(hass, step, error) {
|
||||
return hass.localize(
|
||||
`component.${configEntry.domain}.options.error.${error}`
|
||||
`component.${configEntry.domain}.options.error.${error}`,
|
||||
step.description_placeholders
|
||||
);
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user