Fix Eco mode display on Nest (#14706)

* Fix Eco mode display on Nest

* Fix Hound problems
pull/14683/merge
Marius 2018-06-01 00:26:59 +03:00 committed by Paulus Schoutsen
parent a58a566ae8
commit f32b50cb80
1 changed files with 3 additions and 1 deletions

View File

@ -134,7 +134,9 @@ class NestThermostat(ClimateDevice):
@property
def target_temperature(self):
"""Return the temperature we try to reach."""
if self._mode != NEST_MODE_HEAT_COOL and not self.is_away_mode_on:
if self._mode != NEST_MODE_HEAT_COOL and \
self._mode != STATE_ECO and \
not self.is_away_mode_on:
return self._target_temperature
return None