Fix system health check (#2866)

* Fix system health check

* Update src/panels/dev-info/system-health-card.ts

Co-Authored-By: balloob <paulus@home-assistant.io>
This commit is contained in:
Paulus Schoutsen 2019-02-28 10:24:19 -08:00 committed by GitHub
parent c0896d173d
commit 82189ab3c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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!);