From 946bc9cba5c242437d0a3f1dad7cc74a3c6aba1a Mon Sep 17 00:00:00 2001 From: Ruben Date: Mon, 25 Nov 2024 12:57:31 +0100 Subject: [PATCH] Clear interval before reload. --- src/layouts/ha-init-page.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/layouts/ha-init-page.ts b/src/layouts/ha-init-page.ts index 0e2a5d88334a..6b15a84122a8 100644 --- a/src/layouts/ha-init-page.ts +++ b/src/layouts/ha-init-page.ts @@ -82,10 +82,10 @@ class HaInitPage extends LitElement { } private _retry() { - location.reload(); - if(this._retryInterval) { + if (this._retryInterval) { clearInterval(this._retryInterval); } + location.reload(); } static get styles(): CSSResultGroup {