added static getter to determine if this plugin can be loaded by homecontrol
This commit is contained in:
parent
b2bf9ba767
commit
fe24d07a7e
@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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": {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user