Skip to content

Commit 3116439

Browse files
Merge pull request KartoffelToby#1451 from cygnusb/fix_reading_heating_value
Fix possibly invalid target_temp_high in trv.py
2 parents 45b3d9f + cf00377 commit 3116439

File tree

1 file changed

+1
-1
lines changed
  • custom_components/better_thermostat/events

1 file changed

+1
-1
lines changed

Diff for: custom_components/better_thermostat/events/trv.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ async def trigger_trv_change(self, event):
142142

143143
_main_key = "temperature"
144144
if "temperature" not in old_state.attributes:
145-
_main_key = "target_temp_high"
145+
_main_key = "target_temp_low"
146146

147147
_old_heating_setpoint = convert_to_float(
148148
str(old_state.attributes.get(_main_key, None)),

0 commit comments

Comments
 (0)