From 339be43eea74ac4b00f766cc381cc4d6e57da1dd Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Wed, 27 Feb 2019 16:03:50 -0800 Subject: [PATCH] Check system health loaded (#2861) --- src/panels/dev-info/system-health-card.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/panels/dev-info/system-health-card.ts b/src/panels/dev-info/system-health-card.ts index fbe78da9b6..4f0d0408d6 100644 --- a/src/panels/dev-info/system-health-card.ts +++ b/src/panels/dev-info/system-health-card.ts @@ -98,6 +98,9 @@ class SystemHealthCard extends LitElement { private async _fetchInfo() { try { + if (!("system_health" in this.hass!.config.components)) { + throw new Error(); + } this._info = await fetchSystemHealthInfo(this.hass!); } catch (err) { this._info = {