homebridge-lib 6.6.1 → 6.6.3

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.
@@ -290,7 +290,7 @@ class ButtonValue extends HistoryValue {
290
290
  class LightLevelValue extends HistoryValue {
291
291
  get tag () { return 0x30 }
292
292
  get id () { return 'l' }
293
- prepareEntry (entry) { entry[this.id] = Math.max(1, this._delegate.value) }
293
+ prepareEntry (entry) { entry[this.id] = Math.round(this._delegate.value) }
294
294
  }
295
295
 
296
296
  // Types of delegates for characteristics for history data points.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Library for homebridge plugins",
4
4
  "author": "Erik Baauw",
5
5
  "license": "Apache-2.0",
6
- "version": "6.6.1",
6
+ "version": "6.6.3",
7
7
  "keywords": [
8
8
  "homekit",
9
9
  "homebridge"
@@ -22,11 +22,11 @@
22
22
  },
23
23
  "engines": {
24
24
  "homebridge": "^1.6.1",
25
- "node": "20.8.0||^20||^18"
25
+ "node": "20.8.1||^20||^18"
26
26
  },
27
27
  "dependencies": {
28
28
  "@homebridge/plugin-ui-utils": "~0.1.0",
29
- "hb-lib-tools": "~1.1.2"
29
+ "hb-lib-tools": "~1.1.3"
30
30
  },
31
31
  "scripts": {
32
32
  "prepare": "standard && rm -rf out && jsdoc -c jsdoc.json",