mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 17:56:46 +00:00
Catch undefined cloudstatus (#4465)
This commit is contained in:
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">
|
||||
|
Loading…
x
Reference in New Issue
Block a user