From fe24d07a7e7b56621acf5b75a16dfb592b298544 Mon Sep 17 00:00:00 2001 From: Jan Scheiper Date: Wed, 5 Aug 2020 23:54:18 +0200 Subject: [PATCH] added static getter to determine if this plugin can be loaded by homecontrol --- ControlBase.js | 4 ++++ package.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ControlBase.js b/ControlBase.js index f23e723..a927695 100644 --- a/ControlBase.js +++ b/ControlBase.js @@ -17,6 +17,10 @@ class HCControlBase extends EventEmitter { this._name = this._configuration.name; } + static get _is_homecontrol_control() { + return true; + } + get state() { return this._state.clone(); } diff --git a/package.json b/package.json index 67eb602..f1f2790 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "homecontrol-control-base", - "version": "1.2.0", + "version": "1.3.0", "description": "Base class which all hc-controls inherit from", "main": "index.js", "scripts": {