Skip to content

Commit

Permalink
Fix usage of new parameters in override_configuration_for_hassio() (#193
Browse files Browse the repository at this point in the history
)
  • Loading branch information
JBSC authored Jun 8, 2024
1 parent 79068d0 commit b1b8a54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/configuration/Configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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] != '':
Expand Down

0 comments on commit b1b8a54

Please sign in to comment.