Add support for menu data entry flow option (#12055)

This commit is contained in:
Paulus Schoutsen
2022-03-16 14:14:38 -07:00
committed by GitHub
parent 1e929ae78a
commit 9908162ac2
6 changed files with 145 additions and 6 deletions

View File

@@ -134,6 +134,21 @@ export const showOptionsFlowDialog = (
: "";
},
renderMenuHeader(hass, step) {
return (
hass.localize(
`component.${step.handler}.option.step.${step.step_id}.title`
) || hass.localize(`component.${step.handler}.title`)
);
},
renderMenuOption(hass, step, option) {
return hass.localize(
`component.${step.handler}.options.step.${step.step_id}.menu_options.${option}`,
step.description_placeholders
);
},
renderLoadingDescription(hass, reason) {
return (
hass.localize(`component.${configEntry.domain}.options.loading`) ||