mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-16 05:46:35 +00:00
Fetch cloud and updates on reconnect (#10808)
This commit is contained in:
parent
f164d21c44
commit
66df15007a
@ -447,9 +447,19 @@ class HaPanelConfig extends HassRouterPage {
|
|||||||
this.hass.loadBackendTranslation("title");
|
this.hass.loadBackendTranslation("title");
|
||||||
if (isComponentLoaded(this.hass, "cloud")) {
|
if (isComponentLoaded(this.hass, "cloud")) {
|
||||||
this._updateCloudStatus();
|
this._updateCloudStatus();
|
||||||
|
this.addEventListener("connection-status", (ev) => {
|
||||||
|
if (ev.detail === "connected") {
|
||||||
|
this._updateCloudStatus();
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
if (isComponentLoaded(this.hass, "hassio")) {
|
if (isComponentLoaded(this.hass, "hassio")) {
|
||||||
this._loadSupervisorUpdates();
|
this._loadSupervisorUpdates();
|
||||||
|
this.addEventListener("connection-status", (ev) => {
|
||||||
|
if (ev.detail === "connected") {
|
||||||
|
this._loadSupervisorUpdates();
|
||||||
|
}
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
this._supervisorUpdates = null;
|
this._supervisorUpdates = null;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user