homebridge-rflink
Advanced tools
Comparing version 1.3.2-dev.4 to 1.3.2-dev.5
@@ -236,8 +236,11 @@ "use strict"; | ||
this.updateCurrentPosition(newCurrentPosition); | ||
if (!this.config.devices) { | ||
throw new Error("No device provided"); | ||
if (this.targetPosition !== 0 && this.targetPosition !== 100) { | ||
// Send STOP command if that target position is not all the way open/closed. | ||
if (!this.config.devices) { | ||
throw new Error("No device provided"); | ||
} | ||
const device = this.config.devices[0]; | ||
this.log(`stopping ${this.config.type.toLowerCase()} '${this.config.name}' (device = ${device})`); | ||
this.send(`10;${device};STOP\r\n`, () => { }); | ||
} | ||
const device = this.config.devices[0]; | ||
this.log(`stopping ${this.config.type.toLowerCase()} '${this.config.name}' (device = ${device})`); | ||
this.send(`10;${device};STOP\r\n`, () => { }); | ||
} | ||
@@ -244,0 +247,0 @@ else { |
{ | ||
"name": "homebridge-rflink", | ||
"version": "1.3.2-dev.4", | ||
"version": "1.3.2-dev.5", | ||
"description": "RFLink support for Homebridge", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16538
373