From 50615b49d92762499628d0caa2a5b769f80743f4 Mon Sep 17 00:00:00 2001 From: Andrew Jackson Date: Sun, 17 Nov 2024 10:24:01 +0000 Subject: [PATCH] Fix issue with default frost temperature --- custom_components/hive_local_thermostat/climate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/hive_local_thermostat/climate.py b/custom_components/hive_local_thermostat/climate.py index e67ced7..c1406ef 100644 --- a/custom_components/hive_local_thermostat/climate.py +++ b/custom_components/hive_local_thermostat/climate.py @@ -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):