Skip to content

Commit

Permalink
Fix issue with default frost temperature
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-codechimp committed Nov 17, 2024
1 parent 9fb77ea commit 50615b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/hive_local_thermostat/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,12 +300,12 @@ def target_temperature(self):
if self.entity_description.model == MODEL_SLR2:
if "occupied_heating_setpoint_heat" in self._mqtt_data:
if self._mqtt_data["occupied_heating_setpoint_heat"] == 1:
return self.get_entity_value("heating_frost_prevention")
return self.get_entity_value("heating_frost_prevention", DEFAULT_FROST_TEMPERATURE)
return self._mqtt_data["occupied_heating_setpoint_heat"]
else:
if "occupied_heating_setpoint" in self._mqtt_data:
if self._mqtt_data["occupied_heating_setpoint"] == 1:
return self.get_entity_value("heating_frost_prevention")
return self.get_entity_value("heating_frost_prevention", DEFAULT_FROST_TEMPERATURE)
return self._mqtt_data["occupied_heating_setpoint"]

async def async_set_temperature(self, **kwargs):
Expand Down

0 comments on commit 50615b4

Please sign in to comment.