@mshanemc/homebridge-hydrawise
Advanced tools
Comparing version 2.1.13 to 2.1.14
@@ -77,6 +77,4 @@ "use strict"; | ||
// Run zone | ||
if (service.getCharacteristic(that.platform.api.hap.Characteristic.Active)) { | ||
callback(); | ||
} | ||
else if (value == 1) { | ||
if (value == 1 && | ||
service.getCharacteristic(that.platform.api.hap.Characteristic.Active)) { | ||
that.zone | ||
@@ -95,3 +93,4 @@ .run() | ||
// Stop running zone | ||
else { | ||
else if (value != 1 && | ||
!service.getCharacteristic(that.platform.api.hap.Characteristic.Active)) { | ||
that.zone | ||
@@ -109,2 +108,5 @@ .stop() | ||
} | ||
else { | ||
that.platform.log.warn(`redundant request to set Active to ${value} while it is already ${service.getCharacteristic(that.platform.api.hap.Characteristic.Active)}`); | ||
} | ||
}); | ||
@@ -111,0 +113,0 @@ } |
{ | ||
"name": "@mshanemc/homebridge-hydrawise", | ||
"version": "2.1.13", | ||
"version": "2.1.14", | ||
"description": "A homebridge plugin that creates sprinkler accessories for all your Hydrawise zones", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
32222
443