Update zigbee-herdsman-converters to 14.0.602 (#13654)

* Update zigbee-herdsman-converters to 14.0.602

* Fix tests

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]
2022-08-23 19:53:49 +00:00
committed by GitHub
parent 9e6b4083b2
commit 963c2d86d3
3 changed files with 12 additions and 12 deletions
+7 -7
View File
@@ -35,7 +35,7 @@
"winston-transport": "^4.5.0",
"ws": "^8.8.1",
"zigbee-herdsman": "0.14.48",
"zigbee-herdsman-converters": "14.0.601",
"zigbee-herdsman-converters": "14.0.602",
"zigbee2mqtt-frontend": "0.6.108"
},
"bin": {
@@ -9948,9 +9948,9 @@
}
},
"node_modules/zigbee-herdsman-converters": {
"version": "14.0.601",
"resolved": "https://registry.npmjs.org/zigbee-herdsman-converters/-/zigbee-herdsman-converters-14.0.601.tgz",
"integrity": "sha512-JNRxhLhFHpYP/iO+Or4OkB4WxJeA9QYyVs1r1IPz4uB8XMTg91jmRsMYgL5w5aJDkmWoXrkY9Tc0nf6gFpqD+g==",
"version": "14.0.602",
"resolved": "https://registry.npmjs.org/zigbee-herdsman-converters/-/zigbee-herdsman-converters-14.0.602.tgz",
"integrity": "sha512-eZzn/CYqTCjTKrj2NjuSJzhSZbA9Er1oz9LKC9a0fN75lWmMP1cvypTj8rTcdQEP6+gDJKD9RzZgfjI2smmhVA==",
"dependencies": {
"axios": "^0.27.2",
"buffer-crc32": "^0.2.13",
@@ -17297,9 +17297,9 @@
}
},
"zigbee-herdsman-converters": {
"version": "14.0.601",
"resolved": "https://registry.npmjs.org/zigbee-herdsman-converters/-/zigbee-herdsman-converters-14.0.601.tgz",
"integrity": "sha512-JNRxhLhFHpYP/iO+Or4OkB4WxJeA9QYyVs1r1IPz4uB8XMTg91jmRsMYgL5w5aJDkmWoXrkY9Tc0nf6gFpqD+g==",
"version": "14.0.602",
"resolved": "https://registry.npmjs.org/zigbee-herdsman-converters/-/zigbee-herdsman-converters-14.0.602.tgz",
"integrity": "sha512-eZzn/CYqTCjTKrj2NjuSJzhSZbA9Er1oz9LKC9a0fN75lWmMP1cvypTj8rTcdQEP6+gDJKD9RzZgfjI2smmhVA==",
"requires": {
"axios": "^0.27.2",
"buffer-crc32": "^0.2.13",
+1 -1
View File
@@ -61,7 +61,7 @@
"winston-transport": "^4.5.0",
"ws": "^8.8.1",
"zigbee-herdsman": "0.14.48",
"zigbee-herdsman-converters": "14.0.601",
"zigbee-herdsman-converters": "14.0.602",
"zigbee2mqtt-frontend": "0.6.108"
},
"devDependencies": {
+4 -4
View File
@@ -242,15 +242,15 @@ describe('Receive', () => {
expect(MQTT.publish.mock.calls[0][2]).toStrictEqual({"qos": 1, "retain": false});
});
it('Should handle a zigbee message with voltage 3010', async () => {
it('Should handle a zigbee message with voltage 2990', async () => {
const device = zigbeeHerdsman.devices.WXKG02LM_rev1;
const data = {'65281': {'1': 3010}}
const data = {'65281': {'1': 2990}}
const payload = {data, cluster: 'genBasic', device, endpoint: device.getEndpoint(1), type: 'attributeReport', linkquality: 10};
await zigbeeHerdsman.events.message(payload);
await flushPromises();
expect(MQTT.publish).toHaveBeenCalledTimes(1);
expect(MQTT.publish.mock.calls[0][0]).toStrictEqual('zigbee2mqtt/button_double_key');
expect(JSON.parse(MQTT.publish.mock.calls[0][1])).toStrictEqual({battery: 46, voltage: 3010});
expect(JSON.parse(MQTT.publish.mock.calls[0][1])).toStrictEqual({battery: 93, voltage: 2990});
expect(MQTT.publish.mock.calls[0][2]).toStrictEqual({"qos": 0, "retain": false});
});
@@ -262,7 +262,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': 56, 'illuminance': 381, "illuminance_lux": 381, 'voltage': 3045, 'device_temperature': 19, 'power_outage_count': 34});
expect(JSON.parse(MQTT.publish.mock.calls[0][1])).toStrictEqual({'battery': 100, 'illuminance': 381, "illuminance_lux": 381, 'voltage': 3045, 'device_temperature': 19, 'power_outage_count': 34});
expect(MQTT.publish.mock.calls[0][2]).toStrictEqual({"qos": 0, "retain": false});
});