From 3907988abd5e89cafeedab2646e2ea36d56e283f Mon Sep 17 00:00:00 2001 From: Ludeeus Date: Mon, 16 May 2022 11:26:52 +0000 Subject: [PATCH] Guard for missing backup integration --- src/panels/config/core/ha-config-system-navigation.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/panels/config/core/ha-config-system-navigation.ts b/src/panels/config/core/ha-config-system-navigation.ts index a3335d5903b5..22860dbabfce 100644 --- a/src/panels/config/core/ha-config-system-navigation.ts +++ b/src/panels/config/core/ha-config-system-navigation.ts @@ -189,9 +189,11 @@ class HaConfigSystemNavigation extends LitElement { private async _fetchBackupInfo(isHassioLoaded: boolean) { const backups: BackupContent[] | HassioBackup[] = isHassioLoaded ? await fetchHassioBackups(this.hass) - : await fetchBackupInfo(this.hass).then( + : isComponentLoaded(this.hass, "backup") + ? await fetchBackupInfo(this.hass).then( (backupData) => backupData.backups - ); + ) + : []; if (backups.length > 0) { this._latestBackupDate = (backups as any[]).reduce((a, b) =>