From 1a1c00ba6298340415f50d17c221eaf529c30446 Mon Sep 17 00:00:00 2001 From: Philip Allgaier Date: Wed, 1 Mar 2023 15:10:14 +0100 Subject: [PATCH] Add loading info text to hardware config page (#15616) Co-authored-by: Bram Kragten --- src/panels/config/hardware/ha-config-hardware.ts | 12 +++++++++++- src/translations/en.json | 3 ++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/panels/config/hardware/ha-config-hardware.ts b/src/panels/config/hardware/ha-config-hardware.ts index ebe7340e35..9e0cbea2a1 100644 --- a/src/panels/config/hardware/ha-config-hardware.ts +++ b/src/panels/config/hardware/ha-config-hardware.ts @@ -359,7 +359,7 @@ class HaConfigHardware extends SubscribeMixin(LitElement) { ` : ""} ${dongles?.length - ? html` + ? html` ${dongles.map((dongle) => { const configEntry = dongle.config_entries .map((id) => this._configEntries?.[id]) @@ -441,6 +441,16 @@ class HaConfigHardware extends SubscribeMixin(LitElement) { > ` + : isComponentLoaded(this.hass, "hardware") + ? html` +
+
+ ${this.hass.localize( + "ui.panel.config.hardware.loading_system_data" + )} +
+
+
` : ""} diff --git a/src/translations/en.json b/src/translations/en.json index c97d144058..d8977a8d8d 100755 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -1808,7 +1808,8 @@ "documentation": "Documentation", "configure": "Configure", "documentation_description": "Find extra information about your device", - "restart_homeassistant": "[%key:ui::panel::config::system_dashboard::restart_homeassistant%]" + "restart_homeassistant": "[%key:ui::panel::config::system_dashboard::restart_homeassistant%]", + "loading_system_data": "Loading processor and memory data..." }, "info": { "caption": "About",