From d752f0593d01a47448d65c45196320163c18a93c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 12 Jan 2021 21:57:05 +0100 Subject: [PATCH] Update zigbee-herdsman-converters to 14.0.18 (#5723) * Update zigbee-herdsman-converters to 14.0.18 * Update receive.test.js Co-authored-by: Koenkk Co-authored-by: Koen Kanters --- npm-shrinkwrap.json | 6 +++--- package.json | 2 +- test/receive.test.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index a3f18bb5..999ea811 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -14527,9 +14527,9 @@ } }, "zigbee-herdsman-converters": { - "version": "14.0.17", - "resolved": "https://registry.npmjs.org/zigbee-herdsman-converters/-/zigbee-herdsman-converters-14.0.17.tgz", - "integrity": "sha512-qD7c3/o6RMPcbjSBTjq9h6bFYrg8sD/3torN6VesR2wEebImMlc9TCRt9jvAqzkrv+YNLdnuZrau6iRPC6cPbA==", + "version": "14.0.18", + "resolved": "https://registry.npmjs.org/zigbee-herdsman-converters/-/zigbee-herdsman-converters-14.0.18.tgz", + "integrity": "sha512-jyTD5SgnEJ0dsDu4zKH3jhrWbeQO762E6EgD1xh1eGeCFUc1aCzefJduXI+AUCymerzhiq8ywH10jXtpjJfnvg==", "requires": { "axios": "^0.21.1", "buffer-crc32": "^0.2.13", diff --git a/package.json b/package.json index 0876c121..b91da566 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ "winston-syslog": "^2.4.4", "ws": "^7.3.1", "zigbee-herdsman": "0.13.54", - "zigbee-herdsman-converters": "14.0.17", + "zigbee-herdsman-converters": "14.0.18", "zigbee2mqtt-frontend": "0.3.2" }, "devDependencies": { diff --git a/test/receive.test.js b/test/receive.test.js index 7d4dbdb6..9eacb279 100755 --- a/test/receive.test.js +++ b/test/receive.test.js @@ -314,7 +314,7 @@ describe('Receive', () => { await flushPromises(); expect(MQTT.publish).toHaveBeenCalledTimes(1); expect(MQTT.publish.mock.calls[0][0]).toStrictEqual('zigbee2mqtt/occupancy_sensor'); - expect(JSON.parse(MQTT.publish.mock.calls[0][1])).toStrictEqual({'battery': 100, 'illuminance': 381, "illuminance_lux": 381, 'voltage': 3045}); + expect(JSON.parse(MQTT.publish.mock.calls[0][1])).toStrictEqual({'battery': 100, 'illuminance': 381, "illuminance_lux": 381, 'voltage': 3045, 'temperature': 19}); expect(MQTT.publish.mock.calls[0][2]).toStrictEqual({"qos": 0, "retain": false}); });