From 9c1f12eccae13aef1b3da2048e52fe7a028828e0 Mon Sep 17 00:00:00 2001 From: S'pht'Kr Date: Fri, 15 Apr 2016 20:04:45 +0200 Subject: [PATCH] Bugfix: interlock mod caused other devices to fail set ops. --- index.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index d9fc6a7..c714d88 100644 --- a/index.js +++ b/index.js @@ -382,7 +382,7 @@ ZWayServerAccessory.prototype = { } , isInterlockOn: function(){ - return !!this.interlock.value; + return !!this.interlock && !!this.interlock.value; } , rgb2hsv: function(obj) { diff --git a/package.json b/package.json index 1c9e747..79a51c9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "homebridge-zway", - "version": "0.5.0-alpha1", + "version": "0.5.0-alpha2", "description": "homebridge-plugin for ZWay Server and RaZBerry", "main": "index.js", "scripts": {