@thing-it/device-plant-probe
Advanced tools
Comparing version 0.0.5 to 0.0.6
{ | ||
"name": "@thing-it/device-plant-probe", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "[thing-it-node] Device Plugin for Plant Probes.", | ||
@@ -5,0 +5,0 @@ "authors": "Marc Gille", |
@@ -101,2 +101,8 @@ module.exports = { | ||
PlantProbe.prototype.setState = function (state) { | ||
if (this.state && this.state.height === state.height && this.state.health === state.health) { | ||
// identical state, ignoring | ||
this.logDebug('Ignoring setState invocation as new state is identical to old state'); | ||
return; | ||
} | ||
this.state = state; | ||
@@ -106,4 +112,5 @@ | ||
// TODO Save to Gateway local storage | ||
this.publishStateChange(); | ||
} | ||
}; | ||
} |
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
5967
141