diff --git a/src/panels/config/core/ha-config-network.ts b/src/panels/config/core/ha-config-network.ts index ec90bc8087..6793673711 100644 --- a/src/panels/config/core/ha-config-network.ts +++ b/src/panels/config/core/ha-config-network.ts @@ -30,20 +30,17 @@ class ConfigNetwork extends LitElement { @state() private _error?: string; protected render(): TemplateResult { - if (!this.hass.userData?.showAdvanced) { + if ( + !this.hass.userData?.showAdvanced || + !isComponentLoaded(this.hass, "network") + ) { return html``; } - const error = this._error - ? this._error - : !isComponentLoaded(this.hass, "network") - ? "Network integration not loaded" - : undefined; - return html`
- ${error ? html`
${error}
` : ""} + ${this._error ? html`
${this._error}
` : ""}

Configure which network adapters integrations will use. Currently this setting only affects multicast traffic. A restart is required