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