hb-nb-tools 1.1.5 → 1.1.6

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.
Files changed (2) hide show
  1. package/lib/NbClient.js +2 -2
  2. package/package.json +1 -1
package/lib/NbClient.js CHANGED
@@ -6,7 +6,7 @@
6
6
  'use strict'
7
7
 
8
8
  const crypto = require('crypto')
9
- const { HttpClient, JsonFormatter, OptionParser } = require('hb-lib-tools')
9
+ const { HttpClient, JsonFormatter, OptionParser, toHexString } = require('hb-lib-tools')
10
10
  const { secretbox, randomBytes } = require('tweetnacl')
11
11
 
12
12
  class NbClient extends HttpClient {
@@ -167,7 +167,7 @@ class NbClient extends HttpClient {
167
167
 
168
168
  async init () {
169
169
  const response = await this.info()
170
- this._params.id = response.body.ids.serverId.toString(16).toUpperCase()
170
+ this._params.id = toHexString(response.body.ids.serverId)
171
171
  this._params.firmware = response.body.versions.firmwareVersion
172
172
  }
173
173
 
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Homebridge NB Tools",
4
4
  "author": "Erik Baauw",
5
5
  "license": "Apache-2.0",
6
- "version": "1.1.5",
6
+ "version": "1.1.6",
7
7
  "keywords": [
8
8
  "nuki",
9
9
  "smart-lock",