From 40983619d6b9b6bf8c2ec1089ad535f22672995f Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Fri, 27 Oct 2023 15:48:01 +0200 Subject: [PATCH] Reload when entering safe mode (#18443) --- src/state/connection-mixin.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/state/connection-mixin.ts b/src/state/connection-mixin.ts index 08113c821a2c..c3cced5705c8 100644 --- a/src/state/connection-mixin.ts +++ b/src/state/connection-mixin.ts @@ -274,6 +274,10 @@ export const connectionMixin = >( // on reconnect always fetch config as we might miss an update while we were disconnected // @ts-ignore this.hass!.callWS({ type: "get_config" }).then((config: HassConfig) => { + if (config.safe_mode) { + // @ts-ignore Firefox supports forceGet + location.reload(true); + } this._updateHass({ config }); this.checkDataBaseMigration(); });