From 1e717ab33ef5f334f40c473a82787e3af0f4938b Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Tue, 14 Jan 2020 13:52:23 +0100 Subject: [PATCH] Catch undefined cloudstatus (#4465) --- src/panels/config/dashboard/ha-config-dashboard.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/panels/config/dashboard/ha-config-dashboard.ts b/src/panels/config/dashboard/ha-config-dashboard.ts index 0fa264daff..88229f6da4 100644 --- a/src/panels/config/dashboard/ha-config-dashboard.ts +++ b/src/panels/config/dashboard/ha-config-dashboard.ts @@ -28,7 +28,7 @@ class HaConfigDashboard extends LitElement { @property() public hass!: HomeAssistant; @property() public narrow!: boolean; @property() public isWide!: boolean; - @property() public cloudStatus!: CloudStatus; + @property() public cloudStatus?: CloudStatus; @property() public showAdvanced!: boolean; protected render(): TemplateResult | void { @@ -53,7 +53,7 @@ class HaConfigDashboard extends LitElement { ${this.hass.localize("ui.panel.config.introduction")} - ${isComponentLoaded(this.hass, "cloud") + ${this.cloudStatus && isComponentLoaded(this.hass, "cloud") ? html`