diff --git a/index.ts b/index.ts index e63d6e18..1f632878 100644 --- a/index.ts +++ b/index.ts @@ -25,7 +25,11 @@ class BOILERPLATECard extends LitElement { this._config = config; } - protected render(): TemplateResult { + protected render(): TemplateResult | void { + if (!this._config || !this.hass) { + return html``; + } + return html`