Check system health loaded (#2861)

This commit is contained in:
Paulus Schoutsen 2019-02-27 16:03:50 -08:00 committed by GitHub
parent 00c08a09db
commit 339be43eea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 = {