mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 11:46:42 +00:00
Reload when entering safe mode (#18443)
This commit is contained in:
parent
54758b5962
commit
40983619d6
@ -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();
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user