Skip to content
This repository has been archived by the owner on Jun 12, 2020. It is now read-only.

Commit

Permalink
Update climate.py
Browse files Browse the repository at this point in the history
  • Loading branch information
vlebourl authored May 15, 2020
1 parent a303a9b commit 6b9aa1d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions custom_components/tahoma_extended/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,17 +147,17 @@ def __init__(
self._comfort_temp = comfort_temp
self._anti_freeze_temp = anti_freeze_temp
if self._type == "thermostat":
if away_temp is None:
if self._away_temp is None:
self._somfy_modes = self._somfy_modes | SUPPORT_AWAY_TEMP
self._away_temp = float(
self.tahoma_device.active_states["somfythermostat:AwayModeTargetTemperatureState"])
if eco_temp is None:
if self._eco_temp is None:
self._somfy_modes = self._somfy_modes | SUPPORT_ECO_TEMP
self._eco_temp = self.tahoma_device.active_states["somfythermostat:SleepingModeTargetTemperatureState"]
if comfort_temp is None:
if self._comfort_temp is None:
self._somfy_modes = self._somfy_modes | SUPPORT_COMFORT_TEMP
self._comfort_temp = self.tahoma_device.active_states["somfythermostat:AtHomeTargetTemperatureState"]
if anti_freeze_temp is None:
if self._anti_freeze_temp is None:
self._somfy_modes = self._somfy_modes | SUPPORT_ANTI_FREEZE_TEMP
self._anti_freeze_temp = \
self.tahoma_device.active_states["somfythermostat:FreezeModeTargetTemperatureState"]
Expand Down

0 comments on commit 6b9aa1d

Please sign in to comment.