From 570985b87755bc794e46ff7bd72e78c0bd71ed61 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 16 Jul 2020 22:59:30 +0200 Subject: [PATCH] Update zigbee-herdsman-converters (#3917) * Update zigbee-herdsman-converters to 12.0.140 * Update publish.test.js * Update publish.test.js Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Koen Kanters --- npm-shrinkwrap.json | 6 +++--- package.json | 4 ++-- test/publish.test.js | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index 2c6b593f..e2846335 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -14711,9 +14711,9 @@ } }, "zigbee-herdsman-converters": { - "version": "12.0.139", - "resolved": "https://registry.npmjs.org/zigbee-herdsman-converters/-/zigbee-herdsman-converters-12.0.139.tgz", - "integrity": "sha512-xh+zoVgXmmqDBEYmCr1IyeFWbeSwnLFna5CaV3RQa1/d+o5SHvKYW42JNluv4Cf+9kpU28ZenXNPf6kRFeuoBw==", + "version": "12.0.140", + "resolved": "https://registry.npmjs.org/zigbee-herdsman-converters/-/zigbee-herdsman-converters-12.0.140.tgz", + "integrity": "sha512-tifMkPs4XEEr3+uEb5goQrAY3H8EgtAqxtgQ16YWoyTSFezyRdTn8zcuFqXl6XsQyzpmzZG7iZ/gKS9IRIvrvg==", "requires": { "axios": "*", "https-proxy-agent": "*", diff --git a/package.json b/package.json index 2887ad95..bfe329b7 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,6 @@ }, "homepage": "https://koenkk.github.io/zigbee2mqtt", "dependencies": { - "zigbee-herdsman": "0.12.107", "ajv": "*", "debounce": "*", "fast-deep-equal": "*", @@ -48,7 +47,8 @@ "semver": "*", "winston": "*", "winston-syslog": "*", - "zigbee-herdsman-converters": "12.0.139" + "zigbee-herdsman": "0.12.107", + "zigbee-herdsman-converters": "12.0.140" }, "devDependencies": { "eslint": "*", diff --git a/test/publish.test.js b/test/publish.test.js index 8d6861a9..8187bb23 100644 --- a/test/publish.test.js +++ b/test/publish.test.js @@ -1058,7 +1058,7 @@ describe('Publish', () => { await MQTT.events.message('zigbee2mqtt/MKS-CM-W5/l3/set', JSON.stringify({state: 'ON'})); await flushPromises(); expect(endpoint.command).toHaveBeenCalledTimes(1); - expect(endpoint.command).toHaveBeenCalledWith("manuSpecificTuyaDimmer", "setData", {data: [1,1], dp: 259, fn: 0, status: 0, transid: 16}, {disableDefaultResponse: true}); + expect(endpoint.command).toHaveBeenCalledWith("manuSpecificTuyaDimmer", "setData", {data: [1,1], dp: 259, fn: 0, status: 0, transid: expect.any(Number)}, {disableDefaultResponse: true}); expect(MQTT.publish).toHaveBeenCalledTimes(1); expect(MQTT.publish.mock.calls[0][0]).toStrictEqual('zigbee2mqtt/MKS-CM-W5'); expect(JSON.parse(MQTT.publish.mock.calls[0][1])).toStrictEqual({state_l3: 'ON'});