Catch undefined cloudstatus (#4465)

This commit is contained in:
Bram Kragten
2020-01-14 13:52:23 +01:00
committed by GitHub
parent 995fb4974e
commit 1e717ab33e
@@ -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")}
</div>
${isComponentLoaded(this.hass, "cloud")
${this.cloudStatus && isComponentLoaded(this.hass, "cloud")
? html`
<ha-card>
<a href="/config/cloud" tabindex="-1">