From 321914d53a2b8e3c5f7e0c56e7e72fd54d00c9a2 Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Wed, 14 Sep 2022 11:13:32 +0200 Subject: [PATCH] Fix empty hardware when fetching hardware info (#13738) --- src/panels/config/core/ha-config-system-navigation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panels/config/core/ha-config-system-navigation.ts b/src/panels/config/core/ha-config-system-navigation.ts index 42c71b95c5..2ac869d2d5 100644 --- a/src/panels/config/core/ha-config-system-navigation.ts +++ b/src/panels/config/core/ha-config-system-navigation.ts @@ -205,7 +205,7 @@ class HaConfigSystemNavigation extends LitElement { const hardwareInfo: HardwareInfo = await this.hass.callWS({ type: "hardware/info", }); - this._boardName = hardwareInfo?.hardware?.[0].name; + this._boardName = hardwareInfo?.hardware?.[0]?.name; } else if (isHassioLoaded) { const osData: HassioHassOSInfo = await fetchHassioHassOsInfo(this.hass); if (osData.board) {