Update zigbee-herdsman-converters to 14.0.355 (#10317)

* Update zigbee-herdsman-converters to 14.0.355

* 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] 2021-12-22 20:34:24 +00:00 committed by GitHub
parent cd5dd39971
commit 53003b3d0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 7 deletions

6
npm-shrinkwrap.json generated
View File

@ -13160,9 +13160,9 @@
}
},
"zigbee-herdsman-converters": {
"version": "14.0.354",
"resolved": "https://registry.npmjs.org/zigbee-herdsman-converters/-/zigbee-herdsman-converters-14.0.354.tgz",
"integrity": "sha512-MfjaUa67yKJOaiGNtB1wmZTUWcAinfbZpEVNsGrEXPSbmLsiZonBnWx0lWu09yaaKdSIhUGouP4C612KG3S/lA==",
"version": "14.0.355",
"resolved": "https://registry.npmjs.org/zigbee-herdsman-converters/-/zigbee-herdsman-converters-14.0.355.tgz",
"integrity": "sha512-0rwd9NqTS7CaqfzqKbj+CuTGDTvCR/O98mXIbHxx3aau9ZebGBNvbgxKOnO/BIqWuBDFWmfzo4a4LS50SAy1pQ==",
"requires": {
"axios": "^0.24.0",
"buffer-crc32": "^0.2.13",

View File

@ -58,7 +58,7 @@
"winston-syslog": "^2.4.4",
"ws": "^8.3.0",
"zigbee-herdsman": "0.13.184",
"zigbee-herdsman-converters": "14.0.354",
"zigbee-herdsman-converters": "14.0.355",
"zigbee2mqtt-frontend": "0.6.63"
},
"devDependencies": {

View File

@ -421,7 +421,7 @@ describe('Receive', () => {
it('Should handle a command', async () => {
const device = zigbeeHerdsman.devices.E1743;
const data = {};
const payload = {data, cluster: 'genLevelCtrl', device, endpoint: device.getEndpoint(1), type: 'commandStopWithOnOff', linkquality: 10};
const payload = {data, cluster: 'genLevelCtrl', device, endpoint: device.getEndpoint(1), type: 'commandStopWithOnOff', linkquality: 10, meta: {zclTransactionSequenceNumber: 1}};
await zigbeeHerdsman.events.message(payload);
await flushPromises();
expect(MQTT.publish).toHaveBeenCalledTimes(1);
@ -437,10 +437,10 @@ describe('Receive', () => {
const oldNow = Date.now;
Date.now = jest.fn()
Date.now.mockReturnValue(new Date(150));
await zigbeeHerdsman.events.message(payload);
await zigbeeHerdsman.events.message({...payload, meta: {zclTransactionSequenceNumber: 2}});
await flushPromises();
Date.now.mockReturnValue(new Date(200));
await zigbeeHerdsman.events.message(payload);
await zigbeeHerdsman.events.message({...payload, meta: {zclTransactionSequenceNumber: 3}});
await flushPromises();
expect(MQTT.publish).toHaveBeenCalledTimes(2);
expect(MQTT.publish.mock.calls[0][0]).toStrictEqual('zigbee2mqtt/ikea_onoff');