From d0788072556b743fac7980a522c5367b8aebb6be Mon Sep 17 00:00:00 2001 From: karwosts <32912880+karwosts@users.noreply.github.com> Date: Fri, 19 Jul 2024 02:05:03 -0700 Subject: [PATCH] Show a fallback string when repair translation fails (#21400) --- src/panels/config/repairs/dialog-repairs-issue.ts | 3 ++- src/panels/config/repairs/ha-config-repairs.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/panels/config/repairs/dialog-repairs-issue.ts b/src/panels/config/repairs/dialog-repairs-issue.ts index 7baf58f32db7..ece7a219f7fd 100644 --- a/src/panels/config/repairs/dialog-repairs-issue.ts +++ b/src/panels/config/repairs/dialog-repairs-issue.ts @@ -79,7 +79,8 @@ class DialogRepairsIssue extends LitElement { this._issue.translation_key || this._issue.issue_id }.description`, this._issue.translation_placeholders - )} + ) || + `${this._issue.domain}: ${this._issue.translation_key || this._issue.issue_id}`} > ${this._issue.dismissed_version ? html` diff --git a/src/panels/config/repairs/ha-config-repairs.ts b/src/panels/config/repairs/ha-config-repairs.ts index db112f0d0b5f..4e46d47741ab 100644 --- a/src/panels/config/repairs/ha-config-repairs.ts +++ b/src/panels/config/repairs/ha-config-repairs.ts @@ -74,7 +74,8 @@ class HaConfigRepairs extends LitElement { issue.translation_key || issue.issue_id }.title`, issue.translation_placeholders || {} - )} ${issue.severity === "critical" || issue.severity === "error"