diff --git a/src/panels/config/core/ha-config-system-navigation.ts b/src/panels/config/core/ha-config-system-navigation.ts index 82087c1a07..a3335d5903 100644 --- a/src/panels/config/core/ha-config-system-navigation.ts +++ b/src/panels/config/core/ha-config-system-navigation.ts @@ -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 {