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 <Koenkk@users.noreply.github.com>
Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
This commit is contained in:
github-actions[bot] 2021-01-12 21:57:05 +01:00 committed by GitHub
parent 197c80165b
commit d752f0593d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

6
npm-shrinkwrap.json generated
View File

@ -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",

View File

@ -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": {

View File

@ -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});
});