Add card-tools check

This commit is contained in:
Thomas Lovén 2018-12-14 11:49:44 +01:00
parent b895b8f954
commit f28e6e2874

View File

@ -104,6 +104,8 @@ class FoldEntityRow extends LitElement {
} }
setConfig(config) { 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._config = config;
this._closed = !config.open; this._closed = !config.open;