From e99970528604e62f49dc66e9eaab9f9c91c74914 Mon Sep 17 00:00:00 2001 From: Jean-Marc Collin Date: Tue, 2 Jul 2024 05:17:14 +0000 Subject: [PATCH] Issue 474 - TPI in AC mode is wrong --- custom_components/versatile_thermostat/prop_algorithm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/versatile_thermostat/prop_algorithm.py b/custom_components/versatile_thermostat/prop_algorithm.py index 3cd4aee..c129262 100644 --- a/custom_components/versatile_thermostat/prop_algorithm.py +++ b/custom_components/versatile_thermostat/prop_algorithm.py @@ -70,9 +70,9 @@ class PropAlgorithm: if hvac_mode == HVACMode.COOL: delta_temp = current_temp - target_temp delta_ext_temp = ( - ext_current_temp + ext_current_temp - target_temp if ext_current_temp is not None - else 0 - target_temp + else 0 ) else: delta_temp = target_temp - current_temp