From ff823dbaf0b9818be83b0e3ba02073b1afcd439d Mon Sep 17 00:00:00 2001 From: Koen Kanters Date: Sat, 3 May 2025 08:56:48 +0200 Subject: [PATCH] fix(ignore): update zigbee-herdsman-converters to 23.37.0 (#27300) --- package.json | 2 +- pnpm-lock.yaml | 10 +++++----- test/extensions/publish.test.ts | 10 ++++------ 3 files changed, 10 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index 4eaa56e92..287820297 100644 --- a/package.json +++ b/package.json @@ -62,7 +62,7 @@ "winston-transport": "^4.9.0", "ws": "^8.18.1", "zigbee-herdsman": "4.0.0", - "zigbee-herdsman-converters": "23.36.0", + "zigbee-herdsman-converters": "23.37.0", "zigbee2mqtt-frontend": "0.9.11" }, "devDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index eed0ebe89..61c24c937 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -78,8 +78,8 @@ importers: specifier: 4.0.0 version: 4.0.0 zigbee-herdsman-converters: - specifier: 23.36.0 - version: 23.36.0 + specifier: 23.37.0 + version: 23.37.0 zigbee2mqtt-frontend: specifier: 0.9.11 version: 0.9.11 @@ -1454,8 +1454,8 @@ packages: utf-8-validate: optional: true - zigbee-herdsman-converters@23.36.0: - resolution: {integrity: sha512-gaNFt8YmqYVzeqOrH2cdyzZ8Ah0raeO+CY8Jc7gmhD2X030o76Qai2SFryQEuMAkbyUkI3bKRHWk1Uz84z+RtQ==} + zigbee-herdsman-converters@23.37.0: + resolution: {integrity: sha512-OKDhZk+SJYzLOSo2ontfQ6XXCZB33uJ2P43yy5gLzlVSpFs3MtyYJCTlIRysBhvnO0MejbWJZxn2QIAwF8pfOg==} zigbee-herdsman@4.0.0: resolution: {integrity: sha512-DdNOW8yOvS+1t5VX3Qi4FurF/jryDST4wju73JcvZ7rkEPXSfD+bhLprUX4a0QOP26DDYmDKVpygHBYXk1NMCA==} @@ -2711,7 +2711,7 @@ snapshots: ws@8.18.1: {} - zigbee-herdsman-converters@23.36.0: + zigbee-herdsman-converters@23.37.0: dependencies: buffer-crc32: 1.0.0 iconv-lite: 0.6.3 diff --git a/test/extensions/publish.test.ts b/test/extensions/publish.test.ts index be67db90b..b8b7f4512 100644 --- a/test/extensions/publish.test.ts +++ b/test/extensions/publish.test.ts @@ -967,20 +967,18 @@ describe("Extension: Publish", () => { const payload = {state: "ON", brightness: 20, color_temp: 200, transition: 20}; await mockMQTTEvents.message("zigbee2mqtt/bulb/set", stringify(payload)); await flushPromises(); - expect(endpoint.command).toHaveBeenCalledTimes(3); + expect(endpoint.command).toHaveBeenCalledTimes(2); expect(endpoint.command.mock.calls[0]).toEqual(["genLevelCtrl", "moveToLevelWithOnOff", {level: 20, transtime: 0}, {}]); - expect(endpoint.command.mock.calls[1]).toEqual(["genLevelCtrl", "stop", {}, {}]); // unfreeze - expect(endpoint.command.mock.calls[2]).toEqual(["lightingColorCtrl", "moveToColorTemp", {colortemp: 200, transtime: 200}, {}]); + expect(endpoint.command.mock.calls[1]).toEqual(["lightingColorCtrl", "moveToColorTemp", {colortemp: 200, transtime: 200}, {}]); }); it("Should use transition only once when setting brightness and color temperature for group which contains TRADFRI", async () => { const group = groups.group_with_tradfri; await mockMQTTEvents.message("zigbee2mqtt/group_with_tradfri/set", stringify({state: "ON", transition: 60, brightness: 20, color_temp: 400})); await flushPromises(); - expect(group.command).toHaveBeenCalledTimes(3); + expect(group.command).toHaveBeenCalledTimes(2); expect(group.command.mock.calls[0]).toEqual(["genLevelCtrl", "moveToLevelWithOnOff", {level: 20, transtime: 0}, {}]); - expect(group.command.mock.calls[1]).toEqual(["genLevelCtrl", "stop", {}, {}]); // unfreeze - expect(group.command.mock.calls[2]).toEqual(["lightingColorCtrl", "moveToColorTemp", {colortemp: 400, transtime: 600}, {}]); + expect(group.command.mock.calls[1]).toEqual(["lightingColorCtrl", "moveToColorTemp", {colortemp: 400, transtime: 600}, {}]); }); it("Message transition should overrule options transition", async () => {