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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,7 +28,7 @@ class HaConfigDashboard extends LitElement {
@property() public hass!: HomeAssistant; @property() public hass!: HomeAssistant;
@property() public narrow!: boolean; @property() public narrow!: boolean;
@property() public isWide!: boolean; @property() public isWide!: boolean;
@property() public cloudStatus!: CloudStatus; @property() public cloudStatus?: CloudStatus;
@property() public showAdvanced!: boolean; @property() public showAdvanced!: boolean;
protected render(): TemplateResult | void { protected render(): TemplateResult | void {
@ -53,7 +53,7 @@ class HaConfigDashboard extends LitElement {
${this.hass.localize("ui.panel.config.introduction")} ${this.hass.localize("ui.panel.config.introduction")}
</div> </div>
${isComponentLoaded(this.hass, "cloud") ${this.cloudStatus && isComponentLoaded(this.hass, "cloud")
? html` ? html`
<ha-card> <ha-card>
<a href="/config/cloud" tabindex="-1"> <a href="/config/cloud" tabindex="-1">