Update zigbee-herdsman-converters to 15.19.1 (#17941)

* fix(ignore): update zigbee-herdsman-converters to 15.19.1

* fix

---------

Co-authored-by: Koenkk <Koenkk@users.noreply.github.com>
This commit is contained in:
Koen Kanters 2023-06-07 16:30:11 +02:00 committed by GitHub
parent 86898e5ceb
commit c23d244405
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 14 deletions

View File

@ -1,7 +1,7 @@
import * as settings from '../util/settings';
import zigbeeHerdsmanConverters from 'zigbee-herdsman-converters';
import philips from 'zigbee-herdsman-converters/lib/philips';
import * as philips from 'zigbee-herdsman-converters/lib/philips';
import logger from '../util/logger';
import utils from '../util/utils';
import Extension from './extension';
@ -144,6 +144,7 @@ export default class Publish extends Extension {
{
if (Array.isArray(definition)) {
const c = new Set(definition.map((d) => d.toZigbee).flat());
// @ts-expect-error
if (c.size == 0) converters = defaultGroupConverters;
else converters = Array.from(c);
} else if (definition) {

View File

@ -16,7 +16,3 @@ declare module 'zigbee-herdsman-converters/lib/ota/zigbeeOTA' {
export function useIndexOverride(indexFileName: string): void;
export function setDataDir(dataDir: string): void;
}
declare module 'zigbee-herdsman-converters/lib/philips' {
export const tz: {[s: string]: zhc.ToZigbeeConverter};
}

14
package-lock.json generated
View File

@ -34,7 +34,7 @@
"winston-transport": "^4.5.0",
"ws": "^8.13.0",
"zigbee-herdsman": "0.14.117",
"zigbee-herdsman-converters": "15.18.0",
"zigbee-herdsman-converters": "15.19.1",
"zigbee2mqtt-frontend": "0.6.129"
},
"bin": {
@ -9575,9 +9575,9 @@
}
},
"node_modules/zigbee-herdsman-converters": {
"version": "15.18.0",
"resolved": "https://registry.npmjs.org/zigbee-herdsman-converters/-/zigbee-herdsman-converters-15.18.0.tgz",
"integrity": "sha512-UbmSBlf7B368VSWMSezmTnv4Ov5gqbrYXTIlFVuwxqN7uFnXwdU1qhR4RHvZGTFEub73HLYh5kQsm7NtiY2/UQ==",
"version": "15.19.1",
"resolved": "https://registry.npmjs.org/zigbee-herdsman-converters/-/zigbee-herdsman-converters-15.19.1.tgz",
"integrity": "sha512-Fxzm3xWspkjgj7BXyA0W9+n86C237dbANJUpLdKdYbFOTqa87mHrqHxS28zLfMf/y24G9+chTBYRjqWbaWjo/g==",
"dependencies": {
"axios": "^1.4.0",
"buffer-crc32": "^0.2.13",
@ -16574,9 +16574,9 @@
}
},
"zigbee-herdsman-converters": {
"version": "15.18.0",
"resolved": "https://registry.npmjs.org/zigbee-herdsman-converters/-/zigbee-herdsman-converters-15.18.0.tgz",
"integrity": "sha512-UbmSBlf7B368VSWMSezmTnv4Ov5gqbrYXTIlFVuwxqN7uFnXwdU1qhR4RHvZGTFEub73HLYh5kQsm7NtiY2/UQ==",
"version": "15.19.1",
"resolved": "https://registry.npmjs.org/zigbee-herdsman-converters/-/zigbee-herdsman-converters-15.19.1.tgz",
"integrity": "sha512-Fxzm3xWspkjgj7BXyA0W9+n86C237dbANJUpLdKdYbFOTqa87mHrqHxS28zLfMf/y24G9+chTBYRjqWbaWjo/g==",
"requires": {
"axios": "^1.4.0",
"buffer-crc32": "^0.2.13",

View File

@ -60,7 +60,7 @@
"winston-transport": "^4.5.0",
"ws": "^8.13.0",
"zigbee-herdsman": "0.14.117",
"zigbee-herdsman-converters": "15.18.0",
"zigbee-herdsman-converters": "15.19.1",
"zigbee2mqtt-frontend": "0.6.129"
},
"devDependencies": {

View File

@ -299,7 +299,7 @@ describe('Receive', () => {
it('Should publish 1 message when converted twice', async () => {
const device = zigbeeHerdsman.devices.RTCGQ11LM;
const data = {'65281': {'1': 3045, '3': 19, '4': 17320, '5': 35, '6': [0, 3], '10': 51107, '11': 381, '100': 0}}
const data = {'65281': {'1': 3045, '3': 19, '5': 35, '6': [0, 3], '11': 381, '100': 0}}
const payload = {data, cluster: 'genBasic', device, endpoint: device.getEndpoint(1), type: 'attributeReport', linkquality: 10};
await zigbeeHerdsman.events.message(payload);
await flushPromises();