From 2399ec040f8ae248b35dc640fa623c328ae508e5 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 5 Nov 2021 19:41:23 +0000 Subject: [PATCH] Update zigbee-herdsman-converters to 14.0.309 (#9526) * Update zigbee-herdsman-converters to 14.0.309 * Update receive.test.js Co-authored-by: Koenkk Co-authored-by: Koen Kanters --- npm-shrinkwrap.json | 6 +++--- package.json | 2 +- test/receive.test.js | 19 ------------------- 3 files changed, 4 insertions(+), 23 deletions(-) diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index 08e92f88..e2b17848 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -13224,9 +13224,9 @@ } }, "zigbee-herdsman-converters": { - "version": "14.0.308", - "resolved": "https://registry.npmjs.org/zigbee-herdsman-converters/-/zigbee-herdsman-converters-14.0.308.tgz", - "integrity": "sha512-pr4fl0fNHp6VKEkkap9v/24HkvXmadkug7YdkbpENgm5fwlFzV5c2dxR/qPi5xAaV2BTQoKC+HfXMh5UsTG7Cw==", + "version": "14.0.309", + "resolved": "https://registry.npmjs.org/zigbee-herdsman-converters/-/zigbee-herdsman-converters-14.0.309.tgz", + "integrity": "sha512-1Qpi6QZ8H2bru8rlQ45iEBN9J+mie3Z/XVXtkncaadwUQav+fEuDEvP73l3PzGAdTOns7M7RSnyeyqK8HG8Pog==", "requires": { "axios": "^0.24.0", "buffer-crc32": "^0.2.13", diff --git a/package.json b/package.json index ef13c56f..5a8e484b 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,7 @@ "winston-syslog": "^2.4.4", "ws": "^8.2.3", "zigbee-herdsman": "0.13.166", - "zigbee-herdsman-converters": "14.0.308", + "zigbee-herdsman-converters": "14.0.309", "zigbee2mqtt-frontend": "0.6.31" }, "devDependencies": { diff --git a/test/receive.test.js b/test/receive.test.js index bcddb8c1..16a8a8ff 100755 --- a/test/receive.test.js +++ b/test/receive.test.js @@ -242,25 +242,6 @@ describe('Receive', () => { expect(MQTT.publish.mock.calls[0][2]).toStrictEqual({"qos": 1, "retain": false}); }); - it('WSDCGQ11LM pressure precision from non ZCL properties', async () => { - const device = zigbeeHerdsman.devices.WSDCGQ11LM; - settings.set(['devices', device.ieeeAddr, 'temperature_precision'], 1); - - MQTT.publish.mockClear(); - let payload = {data: {"65281":{"1":2985,"4":5032,"5":9,"6":[0,1],"10":0,"100":2345,"101":4608,"102":91552}}, cluster: 'genBasic', device, endpoint: device.getEndpoint(1), type: 'attributeReport', linkquality: 10}; - await zigbeeHerdsman.events.message(payload); - await flushPromises(); - expect(MQTT.publish).toHaveBeenCalledTimes(1); - expect(JSON.parse(MQTT.publish.mock.calls[0][1])).toStrictEqual({"battery":91,"voltage":2985,"temperature":23.5,"humidity":46.08,"pressure":915.5}); - - MQTT.publish.mockClear(); - payload = {data: {"16":9354,"20":-1,"measuredValue":915}, cluster: 'msPressureMeasurement', device, endpoint: device.getEndpoint(1), type: 'attributeReport', linkquality: 10}; - await zigbeeHerdsman.events.message(payload); - await flushPromises(); - expect(MQTT.publish).toHaveBeenCalledTimes(1); - expect(JSON.parse(MQTT.publish.mock.calls[0][1])).toStrictEqual({"battery":91,"voltage":2985,"temperature":23.5,"humidity":46.08,"pressure":935.4}); - }); - it('Should handle a zigbee message with voltage 3010', async () => { const device = zigbeeHerdsman.devices.WXKG02LM_rev1; const data = {'65281': {'1': 3010}}