Bump Python-Nest to 4.0.5 (#18580)

* Fix Nest eco

* Update Python-nest to 4.0.5

* Update requirements_all.txt

* Update requirements_test_all.txt
This commit is contained in:
Paulus Schoutsen 2018-11-20 12:18:46 +01:00 committed by GitHub
parent 80cd8b180c
commit 9b53b7e9e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 12 deletions

View File

@ -168,18 +168,14 @@ class NestThermostat(ClimateDevice):
@property
def target_temperature(self):
"""Return the temperature we try to reach."""
if self._mode != NEST_MODE_HEAT_COOL and \
self._mode != STATE_ECO and \
not self.is_away_mode_on:
if self._mode not in (NEST_MODE_HEAT_COOL, STATE_ECO):
return self._target_temperature
return None
@property
def target_temperature_low(self):
"""Return the lower bound temperature we try to reach."""
if (self.is_away_mode_on or self._mode == STATE_ECO) and \
self._eco_temperature[0]:
# eco_temperature is always a low, high tuple
if self._mode == STATE_ECO:
return self._eco_temperature[0]
if self._mode == NEST_MODE_HEAT_COOL:
return self._target_temperature[0]
@ -188,9 +184,7 @@ class NestThermostat(ClimateDevice):
@property
def target_temperature_high(self):
"""Return the upper bound temperature we try to reach."""
if (self.is_away_mode_on or self._mode == STATE_ECO) and \
self._eco_temperature[1]:
# eco_temperature is always a low, high tuple
if self._mode == STATE_ECO:
return self._eco_temperature[1]
if self._mode == NEST_MODE_HEAT_COOL:
return self._target_temperature[1]

View File

@ -27,7 +27,7 @@ from homeassistant.helpers.entity import Entity
from .const import DOMAIN
from . import local_auth
REQUIREMENTS = ['python-nest==4.0.4']
REQUIREMENTS = ['python-nest==4.0.5']
_CONFIGURING = {}
_LOGGER = logging.getLogger(__name__)

View File

@ -1222,7 +1222,7 @@ python-mpd2==1.0.0
python-mystrom==0.4.4
# homeassistant.components.nest
python-nest==4.0.4
python-nest==4.0.5
# homeassistant.components.device_tracker.nmap_tracker
python-nmap==0.6.1

View File

@ -196,7 +196,7 @@ pyspcwebgw==0.4.0
python-forecastio==1.4.0
# homeassistant.components.nest
python-nest==4.0.4
python-nest==4.0.5
# homeassistant.components.sensor.whois
pythonwhois==2.4.3