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 <Koenkk@users.noreply.github.com>
Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
This commit is contained in:
github-actions[bot]
2021-11-05 19:41:23 +00:00
committed by GitHub
parent f151e1d371
commit 2399ec040f
3 changed files with 4 additions and 23 deletions
+3 -3
View File
@@ -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",
+1 -1
View File
@@ -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": {
-19
View File
@@ -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}}