Reload when entering safe mode (#18443)

This commit is contained in:
Bram Kragten 2023-10-27 15:48:01 +02:00 committed by GitHub
parent 54758b5962
commit 40983619d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -274,6 +274,10 @@ export const connectionMixin = <T extends Constructor<HassBaseEl>>(
// on reconnect always fetch config as we might miss an update while we were disconnected // on reconnect always fetch config as we might miss an update while we were disconnected
// @ts-ignore // @ts-ignore
this.hass!.callWS({ type: "get_config" }).then((config: HassConfig) => { 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._updateHass({ config });
this.checkDataBaseMigration(); this.checkDataBaseMigration();
}); });