mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2024-11-15 09:58:45 -07:00
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:
parent
197c80165b
commit
d752f0593d
6
npm-shrinkwrap.json
generated
6
npm-shrinkwrap.json
generated
@ -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",
|
||||
|
@ -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": {
|
||||
|
@ -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});
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user