From a525c4479461f3cf867b6db30e17471aeb34d282 Mon Sep 17 00:00:00 2001 From: Ruben van Dijk <15885455+RubenNL@users.noreply.github.com> Date: Mon, 25 Nov 2024 13:43:27 +0100 Subject: [PATCH] Cancels page retry loop with negative intervals. (#22983) * Cancels page retry loop with negative intervals. This shouldn't be required, but sometimes, which I can't easily reproduce, it fails to reload. Fixes #20052 * Clear interval before reload. --- src/layouts/ha-init-page.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/layouts/ha-init-page.ts b/src/layouts/ha-init-page.ts index 34cd4a72bc..6b15a84122 100644 --- a/src/layouts/ha-init-page.ts +++ b/src/layouts/ha-init-page.ts @@ -82,6 +82,9 @@ class HaInitPage extends LitElement { } private _retry() { + if (this._retryInterval) { + clearInterval(this._retryInterval); + } location.reload(); }