mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-08-29 07:08:56 +00:00
fix(ignore): update zigbee-herdsman-converters to 23.1.0 (#26509)
This commit is contained in:
@@ -6,7 +6,7 @@ import {devices, groups, events as mockZHEvents, resetGroupMembers, returnDevice
|
||||
|
||||
import stringify from 'json-stable-stringify-without-jsonify';
|
||||
|
||||
import {toZigbee as zhcToZigbee} from 'zigbee-herdsman-converters';
|
||||
import * as zhcGlobalStore from 'zigbee-herdsman-converters/lib/store';
|
||||
|
||||
import {Controller} from '../../lib/controller';
|
||||
import * as settings from '../../lib/util/settings';
|
||||
@@ -42,7 +42,7 @@ describe('Extension: Groups', () => {
|
||||
settings.reRead();
|
||||
mockMQTTPublishAsync.mockClear();
|
||||
groups.gledopto_group.command.mockClear();
|
||||
zhcToZigbee.__clearStore__();
|
||||
zhcGlobalStore.clear();
|
||||
// @ts-expect-error private
|
||||
controller.state.state = {};
|
||||
});
|
||||
|
||||
@@ -7,7 +7,7 @@ import {devices, groups, events as mockZHEvents} from '../mocks/zigbeeHerdsman';
|
||||
|
||||
import stringify from 'json-stable-stringify-without-jsonify';
|
||||
|
||||
import {toZigbee} from 'zigbee-herdsman-converters';
|
||||
import * as zhcGlobalStore from 'zigbee-herdsman-converters/lib/store';
|
||||
|
||||
import {Controller} from '../../lib/controller';
|
||||
import {loadTopicGetSetRegex} from '../../lib/extension/publish';
|
||||
@@ -58,7 +58,7 @@ describe('Extension: Publish', () => {
|
||||
g.command.mockClear();
|
||||
});
|
||||
|
||||
toZigbee.__clearStore__();
|
||||
zhcGlobalStore.clear();
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
@@ -1511,7 +1511,7 @@ describe('Extension: Publish', () => {
|
||||
await mockMQTTEvents.message('zigbee2mqtt/bulb_color/set', stringify({state: 'ON', brightness: 20, transition: 0.0}));
|
||||
await flushPromises();
|
||||
|
||||
toZigbee.__clearStore__();
|
||||
zhcGlobalStore.clear();
|
||||
|
||||
await mockMQTTEvents.message('zigbee2mqtt/bulb_color/set', stringify({state: 'ON', transition: 1.0}));
|
||||
await flushPromises();
|
||||
|
||||
Reference in New Issue
Block a user