mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2024-11-15 09:58:45 -07:00
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:
parent
86898e5ceb
commit
c23d244405
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
import * as settings from '../util/settings';
|
import * as settings from '../util/settings';
|
||||||
import zigbeeHerdsmanConverters from 'zigbee-herdsman-converters';
|
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 logger from '../util/logger';
|
||||||
import utils from '../util/utils';
|
import utils from '../util/utils';
|
||||||
import Extension from './extension';
|
import Extension from './extension';
|
||||||
@ -144,6 +144,7 @@ export default class Publish extends Extension {
|
|||||||
{
|
{
|
||||||
if (Array.isArray(definition)) {
|
if (Array.isArray(definition)) {
|
||||||
const c = new Set(definition.map((d) => d.toZigbee).flat());
|
const c = new Set(definition.map((d) => d.toZigbee).flat());
|
||||||
|
// @ts-expect-error
|
||||||
if (c.size == 0) converters = defaultGroupConverters;
|
if (c.size == 0) converters = defaultGroupConverters;
|
||||||
else converters = Array.from(c);
|
else converters = Array.from(c);
|
||||||
} else if (definition) {
|
} else if (definition) {
|
||||||
|
4
lib/types/zigbee-herdsman-converters.d.ts
vendored
4
lib/types/zigbee-herdsman-converters.d.ts
vendored
@ -16,7 +16,3 @@ declare module 'zigbee-herdsman-converters/lib/ota/zigbeeOTA' {
|
|||||||
export function useIndexOverride(indexFileName: string): void;
|
export function useIndexOverride(indexFileName: string): void;
|
||||||
export function setDataDir(dataDir: 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
14
package-lock.json
generated
@ -34,7 +34,7 @@
|
|||||||
"winston-transport": "^4.5.0",
|
"winston-transport": "^4.5.0",
|
||||||
"ws": "^8.13.0",
|
"ws": "^8.13.0",
|
||||||
"zigbee-herdsman": "0.14.117",
|
"zigbee-herdsman": "0.14.117",
|
||||||
"zigbee-herdsman-converters": "15.18.0",
|
"zigbee-herdsman-converters": "15.19.1",
|
||||||
"zigbee2mqtt-frontend": "0.6.129"
|
"zigbee2mqtt-frontend": "0.6.129"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
@ -9575,9 +9575,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/zigbee-herdsman-converters": {
|
"node_modules/zigbee-herdsman-converters": {
|
||||||
"version": "15.18.0",
|
"version": "15.19.1",
|
||||||
"resolved": "https://registry.npmjs.org/zigbee-herdsman-converters/-/zigbee-herdsman-converters-15.18.0.tgz",
|
"resolved": "https://registry.npmjs.org/zigbee-herdsman-converters/-/zigbee-herdsman-converters-15.19.1.tgz",
|
||||||
"integrity": "sha512-UbmSBlf7B368VSWMSezmTnv4Ov5gqbrYXTIlFVuwxqN7uFnXwdU1qhR4RHvZGTFEub73HLYh5kQsm7NtiY2/UQ==",
|
"integrity": "sha512-Fxzm3xWspkjgj7BXyA0W9+n86C237dbANJUpLdKdYbFOTqa87mHrqHxS28zLfMf/y24G9+chTBYRjqWbaWjo/g==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^1.4.0",
|
"axios": "^1.4.0",
|
||||||
"buffer-crc32": "^0.2.13",
|
"buffer-crc32": "^0.2.13",
|
||||||
@ -16574,9 +16574,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"zigbee-herdsman-converters": {
|
"zigbee-herdsman-converters": {
|
||||||
"version": "15.18.0",
|
"version": "15.19.1",
|
||||||
"resolved": "https://registry.npmjs.org/zigbee-herdsman-converters/-/zigbee-herdsman-converters-15.18.0.tgz",
|
"resolved": "https://registry.npmjs.org/zigbee-herdsman-converters/-/zigbee-herdsman-converters-15.19.1.tgz",
|
||||||
"integrity": "sha512-UbmSBlf7B368VSWMSezmTnv4Ov5gqbrYXTIlFVuwxqN7uFnXwdU1qhR4RHvZGTFEub73HLYh5kQsm7NtiY2/UQ==",
|
"integrity": "sha512-Fxzm3xWspkjgj7BXyA0W9+n86C237dbANJUpLdKdYbFOTqa87mHrqHxS28zLfMf/y24G9+chTBYRjqWbaWjo/g==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"axios": "^1.4.0",
|
"axios": "^1.4.0",
|
||||||
"buffer-crc32": "^0.2.13",
|
"buffer-crc32": "^0.2.13",
|
||||||
|
@ -60,7 +60,7 @@
|
|||||||
"winston-transport": "^4.5.0",
|
"winston-transport": "^4.5.0",
|
||||||
"ws": "^8.13.0",
|
"ws": "^8.13.0",
|
||||||
"zigbee-herdsman": "0.14.117",
|
"zigbee-herdsman": "0.14.117",
|
||||||
"zigbee-herdsman-converters": "15.18.0",
|
"zigbee-herdsman-converters": "15.19.1",
|
||||||
"zigbee2mqtt-frontend": "0.6.129"
|
"zigbee2mqtt-frontend": "0.6.129"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
@ -299,7 +299,7 @@ describe('Receive', () => {
|
|||||||
|
|
||||||
it('Should publish 1 message when converted twice', async () => {
|
it('Should publish 1 message when converted twice', async () => {
|
||||||
const device = zigbeeHerdsman.devices.RTCGQ11LM;
|
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};
|
const payload = {data, cluster: 'genBasic', device, endpoint: device.getEndpoint(1), type: 'attributeReport', linkquality: 10};
|
||||||
await zigbeeHerdsman.events.message(payload);
|
await zigbeeHerdsman.events.message(payload);
|
||||||
await flushPromises();
|
await flushPromises();
|
||||||
|
Loading…
Reference in New Issue
Block a user