mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 22:57:17 +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
|
@property
|
||||||
def target_temperature(self):
|
def target_temperature(self):
|
||||||
"""Return the temperature we try to reach."""
|
"""Return the temperature we try to reach."""
|
||||||
if self._mode != NEST_MODE_HEAT_COOL and \
|
if self._mode not in (NEST_MODE_HEAT_COOL, STATE_ECO):
|
||||||
self._mode != STATE_ECO and \
|
|
||||||
not self.is_away_mode_on:
|
|
||||||
return self._target_temperature
|
return self._target_temperature
|
||||||
return None
|
return None
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def target_temperature_low(self):
|
def target_temperature_low(self):
|
||||||
"""Return the lower bound temperature we try to reach."""
|
"""Return the lower bound temperature we try to reach."""
|
||||||
if (self.is_away_mode_on or self._mode == STATE_ECO) and \
|
if self._mode == STATE_ECO:
|
||||||
self._eco_temperature[0]:
|
|
||||||
# eco_temperature is always a low, high tuple
|
|
||||||
return self._eco_temperature[0]
|
return self._eco_temperature[0]
|
||||||
if self._mode == NEST_MODE_HEAT_COOL:
|
if self._mode == NEST_MODE_HEAT_COOL:
|
||||||
return self._target_temperature[0]
|
return self._target_temperature[0]
|
||||||
@ -188,9 +184,7 @@ class NestThermostat(ClimateDevice):
|
|||||||
@property
|
@property
|
||||||
def target_temperature_high(self):
|
def target_temperature_high(self):
|
||||||
"""Return the upper bound temperature we try to reach."""
|
"""Return the upper bound temperature we try to reach."""
|
||||||
if (self.is_away_mode_on or self._mode == STATE_ECO) and \
|
if self._mode == STATE_ECO:
|
||||||
self._eco_temperature[1]:
|
|
||||||
# eco_temperature is always a low, high tuple
|
|
||||||
return self._eco_temperature[1]
|
return self._eco_temperature[1]
|
||||||
if self._mode == NEST_MODE_HEAT_COOL:
|
if self._mode == NEST_MODE_HEAT_COOL:
|
||||||
return self._target_temperature[1]
|
return self._target_temperature[1]
|
||||||
|
@ -27,7 +27,7 @@ from homeassistant.helpers.entity import Entity
|
|||||||
from .const import DOMAIN
|
from .const import DOMAIN
|
||||||
from . import local_auth
|
from . import local_auth
|
||||||
|
|
||||||
REQUIREMENTS = ['python-nest==4.0.4']
|
REQUIREMENTS = ['python-nest==4.0.5']
|
||||||
|
|
||||||
_CONFIGURING = {}
|
_CONFIGURING = {}
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
@ -1222,7 +1222,7 @@ python-mpd2==1.0.0
|
|||||||
python-mystrom==0.4.4
|
python-mystrom==0.4.4
|
||||||
|
|
||||||
# homeassistant.components.nest
|
# homeassistant.components.nest
|
||||||
python-nest==4.0.4
|
python-nest==4.0.5
|
||||||
|
|
||||||
# homeassistant.components.device_tracker.nmap_tracker
|
# homeassistant.components.device_tracker.nmap_tracker
|
||||||
python-nmap==0.6.1
|
python-nmap==0.6.1
|
||||||
|
@ -196,7 +196,7 @@ pyspcwebgw==0.4.0
|
|||||||
python-forecastio==1.4.0
|
python-forecastio==1.4.0
|
||||||
|
|
||||||
# homeassistant.components.nest
|
# homeassistant.components.nest
|
||||||
python-nest==4.0.4
|
python-nest==4.0.5
|
||||||
|
|
||||||
# homeassistant.components.sensor.whois
|
# homeassistant.components.sensor.whois
|
||||||
pythonwhois==2.4.3
|
pythonwhois==2.4.3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user