Use new functions of cardTools
This commit is contained in:
parent
e9571b6427
commit
8057bdfd51
@ -1,5 +1,5 @@
|
|||||||
customElements.whenDefined('card-tools').then(() => {
|
customElements.whenDefined('card-tools').then(() => {
|
||||||
class AutoEntities extends cardTools.litElement() {
|
class AutoEntities extends cardTools.LitElement {
|
||||||
|
|
||||||
setConfig(config) {
|
setConfig(config) {
|
||||||
if(!config || !config.card)
|
if(!config || !config.card)
|
||||||
@ -166,8 +166,8 @@ class AutoEntities extends cardTools.litElement() {
|
|||||||
}
|
}
|
||||||
render() {
|
render() {
|
||||||
if(this.entities.length === 0 && this._config.show_empty === false)
|
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>
|
<div id="root">${this.card}</div>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user