From faaac8776eeba1238fb8571a675fa174e4c783c4 Mon Sep 17 00:00:00 2001 From: jblancoperez Date: Wed, 13 Mar 2019 09:32:48 -0300 Subject: [PATCH] Add getCardSize Implementation --- auto-entities.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/auto-entities.js b/auto-entities.js index 179c9a6..cdc9956 100644 --- a/auto-entities.js +++ b/auto-entities.js @@ -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) {