From 8b92713a74cc405eb46229bd8a14f043bcfbac10 Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Fri, 20 Dec 2024 20:53:24 +0100 Subject: [PATCH] Improve rules --- src/panels/config/backup/ha-config-backup-settings.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/panels/config/backup/ha-config-backup-settings.ts b/src/panels/config/backup/ha-config-backup-settings.ts index 83492409e938..cfe1297405a5 100644 --- a/src/panels/config/backup/ha-config-backup-settings.ts +++ b/src/panels/config/backup/ha-config-backup-settings.ts @@ -47,7 +47,12 @@ class HaConfigBackupSettings extends LitElement { private async _scrollToSection() { const hash = window.location.hash.substring(1); - if (hash === "locations" && isComponentLoaded(this.hass, "hassio")) { + if ( + hash === "locations" && + isComponentLoaded(this.hass, "hassio") && + !this._config?.create_backup.include_all_addons && + this._config?.create_backup.include_addons?.length + ) { // Wait for the addons to be loaded before scrolling because the height can change and location section is below addons. this.addEventListener("backup-addons-fetched", async () => { await nextRender();