render guard

This commit is contained in:
Ian Richardson
2019-02-23 14:14:30 -06:00
parent 5a6297f975
commit 505c1841d3
+5 -1
View File
@@ -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`
<div>BOILERPLATE</div>
`;