Skip to content

Commit

Permalink
Add getCardSize Implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
jblancoperez authored and thomasloven committed Oct 15, 2019
1 parent 4f2189a commit faaac87
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion auto-entities.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ class AutoEntities extends cardTools.LitElement {
this.card = cardTools.createCard(Object.assign({entities: this.entities}, config.card));
}


getCardSize() {
if(this.card && typeof this.card.getCardSize === "function")
this.card.getCardSize();
return 1;
}
match(pattern, str){
if (typeof(str) === "string" && typeof(pattern) === "string") {
if((pattern.startsWith('/') && pattern.endsWith('/')) || pattern.indexOf('*') !== -1) {
Expand Down

0 comments on commit faaac87

Please sign in to comment.