hoffmation-base 2.22.11 → 2.22.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,7 +14,7 @@ class ZigbeeMotionSensor extends index_1.ZigbeeDevice {
14
14
  // If the device is not available, there is no active movement
15
15
  return false;
16
16
  }
17
- if (this.lastUpdate.getTime() - services_1.Utils.nowMS() > 3600000) {
17
+ if (services_1.Utils.nowMS() - this.lastUpdate.getTime() > 3600000) {
18
18
  // If the device has not been updated for more than an hour, there is no active movement
19
19
  return false;
20
20
  }