From 8fe76e090f84d91c74e88555ee83716510b19caa Mon Sep 17 00:00:00 2001 From: Koen Kanters Date: Sat, 28 Sep 2024 20:47:32 +0200 Subject: [PATCH] fix(ignore): update zigbee-herdsman-converters to 20.19.0 (#24130) * fix(ignore): update zigbee-herdsman-converters to 20.19.0 * fix tests --- package-lock.json | 8 ++++---- package.json | 2 +- test/homeassistant.test.js | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 507a1a11..732b90ed 100644 --- a/package-lock.json +++ b/package-lock.json @@ -33,7 +33,7 @@ "winston-transport": "^4.7.1", "ws": "^8.18.0", "zigbee-herdsman": "2.1.1", - "zigbee-herdsman-converters": "20.18.0", + "zigbee-herdsman-converters": "20.19.0", "zigbee2mqtt-frontend": "0.7.4" }, "bin": { @@ -10374,9 +10374,9 @@ } }, "node_modules/zigbee-herdsman-converters": { - "version": "20.18.0", - "resolved": "https://registry.npmjs.org/zigbee-herdsman-converters/-/zigbee-herdsman-converters-20.18.0.tgz", - "integrity": "sha512-MyTS4gk6BrEJBA9BTzMq3VRJaEcjM+uRF8hAfF44wjD+vxjRo3nILaKMVG++voVQfp3V5TpJNLIMjDZwk2DwOg==", + "version": "20.19.0", + "resolved": "https://registry.npmjs.org/zigbee-herdsman-converters/-/zigbee-herdsman-converters-20.19.0.tgz", + "integrity": "sha512-zbUBDRkg+CGUQo48BRbUOeHw2JRKCLzbz1Yi9R4wUmF3ZCqhvYzEzqaB6qJjbf/dEdzuy9PIoZbr2fD7JrGdwg==", "license": "MIT", "dependencies": { "axios": "^1.7.7", diff --git a/package.json b/package.json index 9671bf83..5a99c8d4 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,7 @@ "winston-transport": "^4.7.1", "ws": "^8.18.0", "zigbee-herdsman": "2.1.1", - "zigbee-herdsman-converters": "20.18.0", + "zigbee-herdsman-converters": "20.19.0", "zigbee2mqtt-frontend": "0.7.4" }, "devDependencies": { diff --git a/test/homeassistant.test.js b/test/homeassistant.test.js index c30e7bb2..55e746d1 100644 --- a/test/homeassistant.test.js +++ b/test/homeassistant.test.js @@ -1922,19 +1922,19 @@ describe('HomeAssistant extension', () => { await flushPromises(); expect(MQTT.publish).toHaveBeenCalledWith( 'zigbee2mqtt/U202DST600ZB', - stringify({state_l2: 'ON', brightness_l2: 20, linkquality: null, state_l1: null, power_on_behavior: null}), + stringify({state_l2: 'ON', brightness_l2: 20, linkquality: null, state_l1: null, power_on_behavior_l1: null, power_on_behavior_l2: null}), {qos: 0, retain: false}, expect.any(Function), ); expect(MQTT.publish).toHaveBeenCalledWith( 'zigbee2mqtt/U202DST600ZB/l2', - stringify({state: 'ON', brightness: 20}), + stringify({state: 'ON', brightness: 20, power_on_behavior: null}), {qos: 0, retain: false}, expect.any(Function), ); expect(MQTT.publish).toHaveBeenCalledWith( 'zigbee2mqtt/U202DST600ZB/l1', - stringify({state: null}), + stringify({state: null, power_on_behavior: null}), {qos: 0, retain: false}, expect.any(Function), );