diff --git a/src/panels/dev-info/system-health-card.ts b/src/panels/dev-info/system-health-card.ts index 4f0d0408d6..d6b6e4e7ef 100644 --- a/src/panels/dev-info/system-health-card.ts +++ b/src/panels/dev-info/system-health-card.ts @@ -98,7 +98,7 @@ class SystemHealthCard extends LitElement { private async _fetchInfo() { try { - if (!("system_health" in this.hass!.config.components)) { + if (!this.hass!.config.components.includes("system_health")) { throw new Error(); } this._info = await fetchSystemHealthInfo(this.hass!);