Update zigbee-herdsman-converters to 14.0.585 (#13362)

* Update zigbee-herdsman-converters to 14.0.585

* 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-01 18:12:28 +00:00
committed by GitHub
co-authored by Koenkk Koen Kanters
parent 52f8753a09
commit c2faa3815a
3 changed files with 11 additions and 11 deletions
+8 -8
View File
@@ -6,7 +6,7 @@
"packages": {
"": {
"name": "zigbee2mqtt",
"version": "1.26.0-dev",
"version": "1.27.0-dev",
"license": "GPL-3.0",
"dependencies": {
"ajv": "^8.11.0",
@@ -35,7 +35,7 @@
"winston-transport": "^4.5.0",
"ws": "^8.8.1",
"zigbee-herdsman": "0.14.46",
"zigbee-herdsman-converters": "14.0.583",
"zigbee-herdsman-converters": "14.0.585",
"zigbee2mqtt-frontend": "0.6.107"
},
"bin": {
@@ -9831,9 +9831,9 @@
}
},
"node_modules/zigbee-herdsman-converters": {
"version": "14.0.583",
"resolved": "https://registry.npmjs.org/zigbee-herdsman-converters/-/zigbee-herdsman-converters-14.0.583.tgz",
"integrity": "sha512-yHaMj8hvaXgQ1gQ+IT2adg53AgI+gB7FgrvSxxBOYqq1v6/GJQKFIju0d3YiYoFMvQ7P2I5GNcKJz6yKK3wotg==",
"version": "14.0.585",
"resolved": "https://registry.npmjs.org/zigbee-herdsman-converters/-/zigbee-herdsman-converters-14.0.585.tgz",
"integrity": "sha512-dcAAUKiDUoPdrjOhdrD/+gDnwMBFJ3QAQyf/EJX+YhS0CYHj+2f3IL2Rg1UMtjDbn7smLxasQrmyO2SNd5bcfQ==",
"dependencies": {
"axios": "^0.27.2",
"buffer-crc32": "^0.2.13",
@@ -17113,9 +17113,9 @@
}
},
"zigbee-herdsman-converters": {
"version": "14.0.583",
"resolved": "https://registry.npmjs.org/zigbee-herdsman-converters/-/zigbee-herdsman-converters-14.0.583.tgz",
"integrity": "sha512-yHaMj8hvaXgQ1gQ+IT2adg53AgI+gB7FgrvSxxBOYqq1v6/GJQKFIju0d3YiYoFMvQ7P2I5GNcKJz6yKK3wotg==",
"version": "14.0.585",
"resolved": "https://registry.npmjs.org/zigbee-herdsman-converters/-/zigbee-herdsman-converters-14.0.585.tgz",
"integrity": "sha512-dcAAUKiDUoPdrjOhdrD/+gDnwMBFJ3QAQyf/EJX+YhS0CYHj+2f3IL2Rg1UMtjDbn7smLxasQrmyO2SNd5bcfQ==",
"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.46",
"zigbee-herdsman-converters": "14.0.583",
"zigbee-herdsman-converters": "14.0.585",
"zigbee2mqtt-frontend": "0.6.107"
},
"devDependencies": {
+2 -2
View File
@@ -84,7 +84,7 @@ describe('Receive', () => {
await zigbeeHerdsman.events.message({data: {currentPositionLiftPercentage: 90, currentPositionTiltPercentage: 80}, cluster: 'closuresWindowCovering', device, endpoint: device.getEndpoint(1), type: 'attributeReport', linkquality: 10});
await flushPromises();
expect(MQTT.publish).toHaveBeenCalledTimes(1);
expect(MQTT.publish).toHaveBeenCalledWith('zigbee2mqtt/J1_cover', stringify({position: 10, tilt: 20}), {retain: false, qos: 0}, expect.any(Function));
expect(MQTT.publish).toHaveBeenCalledWith('zigbee2mqtt/J1_cover', stringify({position: 10, tilt: 20, state: 'OPEN'}), {retain: false, qos: 0}, expect.any(Function));
// Inverted
MQTT.publish.mockClear();
@@ -92,7 +92,7 @@ describe('Receive', () => {
await zigbeeHerdsman.events.message({data: {currentPositionLiftPercentage: 90, currentPositionTiltPercentage: 80}, cluster: 'closuresWindowCovering', device, endpoint: device.getEndpoint(1), type: 'attributeReport', linkquality: 10});
await flushPromises();
expect(MQTT.publish).toHaveBeenCalledTimes(1);
expect(MQTT.publish).toHaveBeenCalledWith('zigbee2mqtt/J1_cover', stringify({position: 90, tilt: 80}), {retain: false, qos: 0}, expect.any(Function));
expect(MQTT.publish).toHaveBeenCalledWith('zigbee2mqtt/J1_cover', stringify({position: 90, tilt: 80, state: 'OPEN'}), {retain: false, qos: 0}, expect.any(Function));
});
it('Should allow to disable the legacy integration', async () => {