Catch undefined cloudstatus (#4465)
This commit is contained in:
@@ -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">
|
||||||
|
|||||||
Reference in New Issue
Block a user