From 3d541e8481233b39c5edf38681a994d1df0315f2 Mon Sep 17 00:00:00 2001 From: andyxpert <69542335+andyxpert@users.noreply.github.com> Date: Sun, 8 Dec 2024 20:52:55 +0200 Subject: [PATCH] Revert recent Update calibration.py --- custom_components/better_thermostat/calibration.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/custom_components/better_thermostat/calibration.py b/custom_components/better_thermostat/calibration.py index df38eff9..4cae0e52 100644 --- a/custom_components/better_thermostat/calibration.py +++ b/custom_components/better_thermostat/calibration.py @@ -185,9 +185,9 @@ def calculate_calibration_setpoint(self, entity_id) -> Union[float, None]: * valve_position ) -# if self.attr_hvac_action == HVACAction.IDLE: -# if _calibrated_setpoint - _cur_trv_temp_s > 0.0: -# _calibrated_setpoint -= self.tolerance + if self.attr_hvac_action == HVACAction.IDLE: + if _calibrated_setpoint - _cur_trv_temp_s > 0.0: + _calibrated_setpoint -= self.tolerance _calibrated_setpoint = fix_target_temperature_calibration( self, entity_id, _calibrated_setpoint