mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
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:
parent
80cd8b180c
commit
9b53b7e9e4
@ -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]
|
||||
|
@ -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__)
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user