Skip to content

Commit

Permalink
Fix possibly invalid target_temp_high
Browse files Browse the repository at this point in the history
target_temp_high is the cooling temperature and mapped to zigbee occupied_cooling_temperature

target_temp_low is the heating temperature and mapped to zigbee occupied_heating_temperature
  • Loading branch information
cygnusb committed Nov 7, 2024
1 parent 358cbda commit cf00377
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 cf00377

Please sign in to comment.