Skip to content

Commit

Permalink
Use new functions of cardTools
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasloven committed Mar 21, 2019
1 parent e9571b6 commit 8057bdf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions auto-entities.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
customElements.whenDefined('card-tools').then(() => {
class AutoEntities extends cardTools.litElement() {
class AutoEntities extends cardTools.LitElement {

setConfig(config) {
if(!config || !config.card)
Expand Down Expand Up @@ -166,8 +166,8 @@ class AutoEntities extends cardTools.litElement() {
}
render() {
if(this.entities.length === 0 && this._config.show_empty === false)
return cardTools.litHtml()``;
return cardTools.litHtml()`
return cardTools.LitHtml``;
return cardTools.LitHtml`
<div id="root">${this.card}</div>
`;
}
Expand Down

0 comments on commit 8057bdf

Please sign in to comment.