Skip to content

Commit 6aa02dc

Browse files
burmistrzakKoenkk
andauthored
fix: Home Assistant: Remove whitespaces from BTH-RA discovery payload (#29664)
Co-authored-by: Koen Kanters <[email protected]>
1 parent 9d3aa96 commit 6aa02dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/extensions/homeassistant.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1117,10 +1117,10 @@ describe("Extension: HomeAssistant", () => {
11171117
},
11181118
max_temp: "30",
11191119
min_temp: "5",
1120-
mode_command_template: `{% set values = { 'auto':'schedule', 'heat':'manual', 'off':'pause' } %}{"operating_mode": "{{ values[value] if value in values.keys() else 'pause' }}"}`,
1120+
mode_command_template: `{% set values = { 'auto':'schedule','heat':'manual','off':'pause'} %}{"operating_mode": "{{ values[value] if value in values.keys() else 'pause' }}"}`,
11211121
mode_command_topic: "zigbee2mqtt/bosch_radiator/set",
11221122
mode_state_template:
1123-
"{% set values = { 'schedule':'auto', 'manual':'heat', 'pause':'off' } %}{% set value = value_json.operating_mode %}{{ values[value] if value in values.keys() else 'off' }}",
1123+
"{% set values = {'schedule':'auto','manual':'heat','pause':'off'} %}{% set value = value_json.operating_mode %}{{ values[value] if value in values.keys() else 'off' }}",
11241124
mode_state_topic: "zigbee2mqtt/bosch_radiator",
11251125
modes: ["off", "heat", "auto"],
11261126
name: null,

0 commit comments

Comments
 (0)