From 53003b3d0da1a2e2db40f242c894392fc465285a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 22 Dec 2021 20:34:24 +0000 Subject: [PATCH] Update zigbee-herdsman-converters to 14.0.355 (#10317) * Update zigbee-herdsman-converters to 14.0.355 * Fix tests Co-authored-by: Koenkk Co-authored-by: Koen Kanters --- npm-shrinkwrap.json | 6 +++--- package.json | 2 +- test/receive.test.js | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index b5baac8ff..24cb367c2 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -13160,9 +13160,9 @@ } }, "zigbee-herdsman-converters": { - "version": "14.0.354", - "resolved": "https://registry.npmjs.org/zigbee-herdsman-converters/-/zigbee-herdsman-converters-14.0.354.tgz", - "integrity": "sha512-MfjaUa67yKJOaiGNtB1wmZTUWcAinfbZpEVNsGrEXPSbmLsiZonBnWx0lWu09yaaKdSIhUGouP4C612KG3S/lA==", + "version": "14.0.355", + "resolved": "https://registry.npmjs.org/zigbee-herdsman-converters/-/zigbee-herdsman-converters-14.0.355.tgz", + "integrity": "sha512-0rwd9NqTS7CaqfzqKbj+CuTGDTvCR/O98mXIbHxx3aau9ZebGBNvbgxKOnO/BIqWuBDFWmfzo4a4LS50SAy1pQ==", "requires": { "axios": "^0.24.0", "buffer-crc32": "^0.2.13", diff --git a/package.json b/package.json index 0cc890181..99f339b2b 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,7 @@ "winston-syslog": "^2.4.4", "ws": "^8.3.0", "zigbee-herdsman": "0.13.184", - "zigbee-herdsman-converters": "14.0.354", + "zigbee-herdsman-converters": "14.0.355", "zigbee2mqtt-frontend": "0.6.63" }, "devDependencies": { diff --git a/test/receive.test.js b/test/receive.test.js index 16a8a8ff5..3edcf9ba0 100755 --- a/test/receive.test.js +++ b/test/receive.test.js @@ -421,7 +421,7 @@ describe('Receive', () => { it('Should handle a command', async () => { const device = zigbeeHerdsman.devices.E1743; const data = {}; - const payload = {data, cluster: 'genLevelCtrl', device, endpoint: device.getEndpoint(1), type: 'commandStopWithOnOff', linkquality: 10}; + const payload = {data, cluster: 'genLevelCtrl', device, endpoint: device.getEndpoint(1), type: 'commandStopWithOnOff', linkquality: 10, meta: {zclTransactionSequenceNumber: 1}}; await zigbeeHerdsman.events.message(payload); await flushPromises(); expect(MQTT.publish).toHaveBeenCalledTimes(1); @@ -437,10 +437,10 @@ describe('Receive', () => { const oldNow = Date.now; Date.now = jest.fn() Date.now.mockReturnValue(new Date(150)); - await zigbeeHerdsman.events.message(payload); + await zigbeeHerdsman.events.message({...payload, meta: {zclTransactionSequenceNumber: 2}}); await flushPromises(); Date.now.mockReturnValue(new Date(200)); - await zigbeeHerdsman.events.message(payload); + await zigbeeHerdsman.events.message({...payload, meta: {zclTransactionSequenceNumber: 3}}); await flushPromises(); expect(MQTT.publish).toHaveBeenCalledTimes(2); expect(MQTT.publish.mock.calls[0][0]).toStrictEqual('zigbee2mqtt/ikea_onoff');