We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c69cdd8 commit ba01fbeCopy full SHA for ba01fbe
index.js
@@ -24,7 +24,11 @@ function ElecticRimLockAccessory(log, config) {
24
this.version = require('./package.json').version;
25
this.lastLockTargetState = 1;
26
27
- if (!this.pin) throw new Error("You must provide a config value for pin.");
+ if (!this.name || !this.pin) {
28
+ this.log.warn("You must provide a valid config value for name and pin.");
29
+ this.disabled = true;
30
+ return;
31
+ }
32
if (this.duration == null || this.duration % 1 != 0) this.duration = 500;
33
this.log("Tiro GPIO version: " + this.version);
34
this.log("Switch pin: " + this.pin);
0 commit comments