mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-18 14:56:37 +00:00
Fix setting _externalAccess (#12584)
This commit is contained in:
parent
a4f8e886bc
commit
552c474feb
@ -218,14 +218,13 @@ class HaConfigSystemNavigation extends LitElement {
|
||||
|
||||
private async _fetchNetworkStatus() {
|
||||
if (isComponentLoaded(this.hass, "cloud")) {
|
||||
fetchCloudStatus(this.hass).then((cloudStatus) => {
|
||||
if (cloudStatus.logged_in) {
|
||||
this._externalAccess = true;
|
||||
}
|
||||
});
|
||||
} else {
|
||||
this._externalAccess = this.hass.config.external_url !== null;
|
||||
const cloudStatus = await fetchCloudStatus(this.hass);
|
||||
if (cloudStatus.logged_in) {
|
||||
this._externalAccess = true;
|
||||
return;
|
||||
}
|
||||
}
|
||||
this._externalAccess = this.hass.config.external_url !== null;
|
||||
}
|
||||
|
||||
static get styles(): CSSResultGroup {
|
||||
|
Loading…
x
Reference in New Issue
Block a user