Skip to content

Commit faaac87

Browse files
jblancoperezthomasloven
authored andcommitted
Add getCardSize Implementation
1 parent 4f2189a commit faaac87

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

auto-entities.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ class AutoEntities extends cardTools.LitElement {
1212
this.card = cardTools.createCard(Object.assign({entities: this.entities}, config.card));
1313
}
1414

15-
15+
getCardSize() {
16+
if(this.card && typeof this.card.getCardSize === "function")
17+
this.card.getCardSize();
18+
return 1;
19+
}
1620
match(pattern, str){
1721
if (typeof(str) === "string" && typeof(pattern) === "string") {
1822
if((pattern.startsWith('/') && pattern.endsWith('/')) || pattern.indexOf('*') !== -1) {

0 commit comments

Comments
 (0)