render guard
This commit is contained in:
@@ -25,7 +25,11 @@ class BOILERPLATECard extends LitElement {
|
|||||||
this._config = config;
|
this._config = config;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected render(): TemplateResult {
|
protected render(): TemplateResult | void {
|
||||||
|
if (!this._config || !this.hass) {
|
||||||
|
return html``;
|
||||||
|
}
|
||||||
|
|
||||||
return html`
|
return html`
|
||||||
<div>BOILERPLATE</div>
|
<div>BOILERPLATE</div>
|
||||||
`;
|
`;
|
||||||
|
|||||||
Reference in New Issue
Block a user