Skip to content

Commit

Permalink
Improve rules
Browse files Browse the repository at this point in the history
  • Loading branch information
piitaya committed Dec 20, 2024
1 parent 72cee8d commit 8b92713
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/panels/config/backup/ha-config-backup-settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 8b92713

Please sign in to comment.