From 85acafe8a8426d6e282a8ca30c856e6eeb73fc74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Wed, 24 May 2023 15:31:41 +0300 Subject: [PATCH] Fix reload mounts callback when doing changes in dialog (#16615) --- src/panels/config/storage/ha-config-section-storage.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/panels/config/storage/ha-config-section-storage.ts b/src/panels/config/storage/ha-config-section-storage.ts index 062e738f43..b2c448ac57 100644 --- a/src/panels/config/storage/ha-config-section-storage.ts +++ b/src/panels/config/storage/ha-config-section-storage.ts @@ -269,7 +269,7 @@ class HaConfigSectionStorage extends LitElement { private _addMount(): void { showMountViewDialog(this, { - reloadMounts: this._reloadMounts, + reloadMounts: () => this._reloadMounts(), }); } @@ -277,7 +277,7 @@ class HaConfigSectionStorage extends LitElement { ev.stopPropagation(); showMountViewDialog(this, { mount: (ev.currentTarget as any).mount, - reloadMounts: this._reloadMounts, + reloadMounts: () => this._reloadMounts(), }); }