node-red-contrib-deconz
Advanced tools
Comparing version 2.3.2 to 2.3.3
@@ -10,2 +10,8 @@ # Changelog | ||
## [2.3.3] - 2022-01-30 ![Relative date](https://img.shields.io/date/1643634592?label=) | ||
### Fixed | ||
- Fix HomeKit value translation for inverted range. (#196) @Zehir | ||
## [2.3.2] - 2022-01-29 ![Relative date](https://img.shields.io/date/1643459917?label=) | ||
@@ -12,0 +18,0 @@ |
{ | ||
"name": "node-red-contrib-deconz", | ||
"version": "2.3.2", | ||
"version": "2.3.3", | ||
"description": "deCONZ connectivity nodes for node-red", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -29,3 +29,3 @@ const REDUtil = require("@node-red/util/lib/util"); | ||
property.type : | ||
REDUtil.evaluateNodeProperty(property.value, property.type, node, message_in); | ||
REDUtil.evaluateNodeProperty(property.value, property.type, node, message_in, undefined); | ||
} | ||
@@ -36,4 +36,9 @@ | ||
if (limitValue) { | ||
value = Math.max(value, r1[0]); | ||
value = Math.min(value, r1[1]); | ||
if (r1[0] < r1[1]) { | ||
if (value < r1[0]) value = r1[0]; | ||
if (value > r1[1]) value = r1[1]; | ||
} else { | ||
if (value > r1[0]) value = r1[0]; | ||
if (value < r1[1]) value = r1[1]; | ||
} | ||
} | ||
@@ -40,0 +45,0 @@ let result = (value - r1[0]) * (r2[1] - r2[0]) / (r1[1] - r1[0]) + r2[0]; |
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
547993
7804