thing-it-device-aircable
Advanced tools
Comparing version 0.0.17 to 0.0.18
@@ -164,2 +164,7 @@ module.exports = { | ||
if (this.isSimulated()) { | ||
setInterval(function () { | ||
this.state.batteryLevel = 100 - 20 * Math.floor((Math.random() * 5)); | ||
this.publishStateChange(); | ||
}.bind(this), 10); | ||
deferred.resolve(); | ||
@@ -192,7 +197,6 @@ } else { | ||
AirCableSmartDimmer.prototype.on = function () { | ||
if (this.isSimulated()) { | ||
this.state.switch = true; | ||
this.state.switch = true; | ||
if (!this.isSimulated()) { | ||
} | ||
else { | ||
} | ||
@@ -207,7 +211,6 @@ this.publishStateChange(); | ||
AirCableSmartDimmer.prototype.off = function () { | ||
if (this.isSimulated()) { | ||
this.state.switch = false; | ||
this.state.switch = false; | ||
if (!this.isSimulated()) { | ||
} | ||
else { | ||
} | ||
@@ -222,7 +225,6 @@ this.publishStateChange(); | ||
AirCableSmartDimmer.prototype.toggle = function () { | ||
if (this.isSimulated()) { | ||
this.state.switch = !this.state.switch; | ||
this.state.switch = !this.state.switch; | ||
if (!this.isSimulated()) { | ||
} | ||
else { | ||
} | ||
@@ -229,0 +231,0 @@ this.publishStateChange(); |
{ | ||
"name": "thing-it-device-aircable", | ||
"version": "0.0.17", | ||
"version": "0.0.18", | ||
"description": "[thing-it-node] Device Plugin for AIRcable products (e.g. AIRcable SmartDimmer).", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
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
51505
228