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