From b1b8a54ef6c1b816d37d3500b9f1f8f607669c5f Mon Sep 17 00:00:00 2001 From: JBSC Date: Sat, 8 Jun 2024 10:14:12 +0200 Subject: [PATCH] Fix usage of new parameters in override_configuration_for_hassio() (#193) --- app/configuration/Configuration.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/configuration/Configuration.py b/app/configuration/Configuration.py index c2b91af..5efdae0 100644 --- a/app/configuration/Configuration.py +++ b/app/configuration/Configuration.py @@ -120,10 +120,10 @@ def override_configuration_for_hassio(self): if TYDOM_ALARM_NIGHT_ZONE in data and data[TYDOM_ALARM_NIGHT_ZONE] != '': self.tydom_alarm_night_zone = data[TYDOM_ALARM_NIGHT_ZONE] - if THERMOSTAT_COOL_MODE_TEMP_DEFAULT in data[THERMOSTAT_COOL_MODE_TEMP_DEFAULT] != '': + if THERMOSTAT_COOL_MODE_TEMP_DEFAULT in data and data[THERMOSTAT_COOL_MODE_TEMP_DEFAULT] != '': self.thermostat_cool_mode_temp_default = data[THERMOSTAT_COOL_MODE_TEMP_DEFAULT] - if THERMOSTAT_HEAT_MODE_TEMP_DEFAULT in data[THERMOSTAT_HEAT_MODE_TEMP_DEFAULT] != '': + if THERMOSTAT_HEAT_MODE_TEMP_DEFAULT in data and data[THERMOSTAT_HEAT_MODE_TEMP_DEFAULT] != '': self.thermostat_heat_mode_temp_default = data[THERMOSTAT_HEAT_MODE_TEMP_DEFAULT] if MQTT_HOST in data and data[MQTT_HOST] != '':