mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Check system health loaded (#2861)
This commit is contained in:
parent
00c08a09db
commit
339be43eea
@ -98,6 +98,9 @@ class SystemHealthCard extends LitElement {
|
|||||||
|
|
||||||
private async _fetchInfo() {
|
private async _fetchInfo() {
|
||||||
try {
|
try {
|
||||||
|
if (!("system_health" in this.hass!.config.components)) {
|
||||||
|
throw new Error();
|
||||||
|
}
|
||||||
this._info = await fetchSystemHealthInfo(this.hass!);
|
this._info = await fetchSystemHealthInfo(this.hass!);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
this._info = {
|
this._info = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user