added static getter to determine if this plugin can be loaded by homecontrol

This commit is contained in:
Jan Scheiper 2020-08-05 23:54:18 +02:00
parent b2bf9ba767
commit fe24d07a7e
2 changed files with 5 additions and 1 deletions

View File

@ -17,6 +17,10 @@ class HCControlBase extends EventEmitter {
this._name = this._configuration.name; this._name = this._configuration.name;
} }
static get _is_homecontrol_control() {
return true;
}
get state() { get state() {
return this._state.clone(); return this._state.clone();
} }

View File

@ -1,6 +1,6 @@
{ {
"name": "homecontrol-control-base", "name": "homecontrol-control-base",
"version": "1.2.0", "version": "1.3.0",
"description": "Base class which all hc-controls inherit from", "description": "Base class which all hc-controls inherit from",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {