Add card-tools check
This commit is contained in:
parent
b895b8f954
commit
f28e6e2874
@ -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;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user