Skip to content

Commit 1369f80

Browse files
Allow using description in create_entry for repair flows (#53671)
1 parent cd52f7b commit 1369f80

1 file changed

Lines changed: 21 additions & 2 deletions

File tree

src/panels/config/repairs/show-dialog-repair-flow.ts

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,28 @@ export const showRepairsFlowDialog = (
203203
return "";
204204
},
205205

206-
renderCreateEntryDescription(hass, _step) {
206+
renderCreateEntryDescription(hass, step) {
207+
const description = hass.localize(
208+
`component.${issue.domain}.issues.${
209+
issue.translation_key || issue.issue_id
210+
}.fix_flow.create_entry.${step.description || "default"}`,
211+
step.description_placeholders
212+
);
213+
207214
return html`
208-
<p>${hass.localize("ui.dialogs.repair_flow.success.description")}</p>
215+
${
216+
description
217+
? html`
218+
<ha-markdown
219+
allow-svg
220+
breaks
221+
.content=${description}
222+
></ha-markdown>
223+
`
224+
: html`<p>
225+
${hass.localize("ui.dialogs.repair_flow.success.description")}
226+
</p>`
227+
}
209228
`;
210229
},
211230

0 commit comments

Comments
 (0)