From 00bc315fc1c73cb8349a25eb8b77c2ead86ecde2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Tue, 6 Sep 2022 11:48:41 +0200 Subject: [PATCH] Fetch OS info from Supervisor if we do not return anything for hardware (#13614) Co-authored-by: Bram Kragten --- src/panels/config/hardware/ha-config-hardware.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/panels/config/hardware/ha-config-hardware.ts b/src/panels/config/hardware/ha-config-hardware.ts index a84c053584..3e19697d1e 100644 --- a/src/panels/config/hardware/ha-config-hardware.ts +++ b/src/panels/config/hardware/ha-config-hardware.ts @@ -352,7 +352,9 @@ class HaConfigHardware extends SubscribeMixin(LitElement) { try { if (isComponentLoaded(this.hass, "hardware")) { this._hardwareInfo = await this.hass.callWS({ type: "hardware/info" }); - } else if (isHassioLoaded) { + } + + if (isHassioLoaded && !this._hardwareInfo?.hardware.length) { this._OSData = await fetchHassioHassOsInfo(this.hass); }