From af51ef62e0736d845dc0cc077995b51eb77539c1 Mon Sep 17 00:00:00 2001 From: Jean-Marc Collin Date: Wed, 30 Aug 2023 09:06:26 +0200 Subject: [PATCH] Issue #99 : over climate VTherm a regulated by the device itself and should not goes into security --- custom_components/versatile_thermostat/climate.py | 3 ++- custom_components/versatile_thermostat/requirements_dev.txt | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/custom_components/versatile_thermostat/climate.py b/custom_components/versatile_thermostat/climate.py index 4219b0b..0857402 100644 --- a/custom_components/versatile_thermostat/climate.py +++ b/custom_components/versatile_thermostat/climate.py @@ -2106,7 +2106,8 @@ class VersatileThermostat(ClimateEntity, RestoreEntity): switch_cond, ) - shouldClimateBeInSecurity = temp_cond and climate_cond + # Issue 99 - a climate is regulated by the device itself and not by VTherm. So a VTherm should never be in security ! + shouldClimateBeInSecurity = False # temp_cond and climate_cond shouldSwitchBeInSecurity = temp_cond and switch_cond shouldBeInSecurity = shouldClimateBeInSecurity or shouldSwitchBeInSecurity diff --git a/custom_components/versatile_thermostat/requirements_dev.txt b/custom_components/versatile_thermostat/requirements_dev.txt index 3c057e4..e59232c 100644 --- a/custom_components/versatile_thermostat/requirements_dev.txt +++ b/custom_components/versatile_thermostat/requirements_dev.txt @@ -1,2 +1,2 @@ -homeassistant +homeassistant==2023.8.3 ffmpeg \ No newline at end of file