Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Sep 28, 2024
1 parent 2f9158c commit d7aacd9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/homeassistant.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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),
);
Expand Down

0 comments on commit d7aacd9

Please sign in to comment.