mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2024-11-16 10:28:33 -07:00
Fix tests after https://github.com/Koenkk/zigbee2mqtt/pull/4510
This commit is contained in:
parent
c045b90d2b
commit
a982acc1ca
@ -827,7 +827,7 @@ const climate = (minTemp=7, maxTemp=30, temperatureStateProperty='occupied_heati
|
||||
retVal.discovery_payload.away_mode_command_topic = true;
|
||||
retVal.discovery_payload.away_mode_state_topic = true;
|
||||
retVal.discovery_payload.away_mode_state_template =
|
||||
'{{ value_json.away_mode }}';
|
||||
`{{ ${jsonProperty('away_mode')} }}`;
|
||||
}
|
||||
|
||||
if (holdModes.length > 0) { // || indexOfAway > -1) {
|
||||
|
@ -437,6 +437,9 @@ describe('HomeAssistant extension', () => {
|
||||
"action_template":"{% set values = {'idle':'off','heat':'heating','cool':'cooling','fan only':'fan'} %}{{ values[value_json.running_state] }}",
|
||||
"action_topic":"zigbee2mqtt/TS0601_thermostat",
|
||||
"availability_topic":"zigbee2mqtt/bridge/state",
|
||||
"away_mode_command_topic":"zigbee2mqtt/TS0601_thermostat/set/away_mode",
|
||||
"away_mode_state_template":"{{ value_json.away_mode }}",
|
||||
"away_mode_state_topic":"zigbee2mqtt/TS0601_thermostat",
|
||||
"current_temperature_template":"{{ value_json.local_temperature }}",
|
||||
"current_temperature_topic":"zigbee2mqtt/TS0601_thermostat",
|
||||
"device":{
|
||||
@ -452,7 +455,6 @@ describe('HomeAssistant extension', () => {
|
||||
"hold_modes":[
|
||||
"schedule",
|
||||
"manual",
|
||||
"away",
|
||||
"boost",
|
||||
"complex",
|
||||
"comfort",
|
||||
|
Loading…
Reference in New Issue
Block a user