Show abort reason when no translation (#20664)

This commit is contained in:
Bram Kragten 2024-04-29 17:35:30 +02:00 committed by GitHub
parent 1df92fa863
commit 2b27a4da2b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View File

@ -52,7 +52,7 @@ export const showConfigFlowDialog = (
? html` ? html`
<ha-markdown allowsvg breaks .content=${description}></ha-markdown> <ha-markdown allowsvg breaks .content=${description}></ha-markdown>
` `
: ""; : step.reason;
}, },
renderShowFormStepHeader(hass, step) { renderShowFormStepHeader(hass, step) {

View File

@ -34,7 +34,7 @@ export interface FlowConfig {
renderAbortDescription( renderAbortDescription(
hass: HomeAssistant, hass: HomeAssistant,
step: DataEntryFlowStepAbort step: DataEntryFlowStepAbort
): TemplateResult | ""; ): TemplateResult | string;
renderShowFormStepHeader( renderShowFormStepHeader(
hass: HomeAssistant, hass: HomeAssistant,

View File

@ -65,7 +65,7 @@ export const showOptionsFlowDialog = (
.content=${description} .content=${description}
></ha-markdown> ></ha-markdown>
` `
: ""; : step.reason;
}, },
renderShowFormStepHeader(hass, step) { renderShowFormStepHeader(hass, step) {

View File

@ -64,7 +64,7 @@ export const showRepairsFlowDialog = (
.content=${description} .content=${description}
></ha-markdown> ></ha-markdown>
` `
: ""; : step.reason;
}, },
renderShowFormStepHeader(hass, step) { renderShowFormStepHeader(hass, step) {