From f28e6e2874dadc77c19e27643ab11fa99de7f30f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Lov=C3=A9n?= Date: Fri, 14 Dec 2018 11:49:44 +0100 Subject: [PATCH] Add card-tools check --- fold-entity-row.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fold-entity-row.js b/fold-entity-row.js index da1a55f..0f70948 100644 --- a/fold-entity-row.js +++ b/fold-entity-row.js @@ -104,6 +104,8 @@ class FoldEntityRow extends LitElement { } setConfig(config) { + if(!window.cardTools) throw new Error(`Can't find card-tools. See https://github.com/thomasloven/lovelace-card-tools`); + window.cardTools.checkVersion(0.1); this._config = config; this._closed = !config.open;