Skip to content

Commit

Permalink
Merge pull request #1451 from cygnusb/fix_reading_heating_value
Browse files Browse the repository at this point in the history
Fix possibly invalid target_temp_high in trv.py
  • Loading branch information
KartoffelToby authored Nov 7, 2024
2 parents 45b3d9f + cf00377 commit 3116439
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/better_thermostat/events/trv.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ async def trigger_trv_change(self, event):

_main_key = "temperature"
if "temperature" not in old_state.attributes:
_main_key = "target_temp_high"
_main_key = "target_temp_low"

_old_heating_setpoint = convert_to_float(
str(old_state.attributes.get(_main_key, None)),
Expand Down

0 comments on commit 3116439

Please sign in to comment.