From 505c1841d37147696a0befce449fe9a2b83b8d49 Mon Sep 17 00:00:00 2001 From: Ian Richardson Date: Sat, 23 Feb 2019 14:14:30 -0600 Subject: [PATCH] render guard --- index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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`
BOILERPLATE
`;