Bump python-nest to 4.0.3 (#15098)

Resolve network reconnect issue
This commit is contained in:
Jason Hu 2018-06-25 10:04:32 -07:00 committed by Paulus Schoutsen
parent 42ba2a68ce
commit 6c0fc65eaf
4 changed files with 6 additions and 4 deletions

View File

@ -23,7 +23,7 @@ from homeassistant.helpers.entity import Entity
from .const import DOMAIN
from . import local_auth
REQUIREMENTS = ['python-nest==4.0.2']
REQUIREMENTS = ['python-nest==4.0.3']
_CONFIGURING = {}
_LOGGER = logging.getLogger(__name__)
@ -86,6 +86,7 @@ async def async_nest_update_event_broker(hass, nest):
_LOGGER.debug("dispatching nest data update")
async_dispatcher_send(hass, SIGNAL_NEST_UPDATE)
else:
_LOGGER.debug("stop listening nest.update_event")
return

View File

@ -133,7 +133,8 @@ class NestBasicSensor(NestSensorDevice):
elif self.variable in PROTECT_SENSOR_TYPES \
and self.variable != 'color_status':
# keep backward compatibility
self._state = getattr(self.device, self.variable).capitalize()
state = getattr(self.device, self.variable)
self._state = state.capitalize() if state is not None else None
else:
self._state = getattr(self.device, self.variable)

View File

@ -1059,7 +1059,7 @@ python-mpd2==1.0.0
python-mystrom==0.4.4
# homeassistant.components.nest
python-nest==4.0.2
python-nest==4.0.3
# homeassistant.components.device_tracker.nmap_tracker
python-nmap==0.6.1

View File

@ -156,7 +156,7 @@ pyqwikswitch==0.8
python-forecastio==1.4.0
# homeassistant.components.nest
python-nest==4.0.2
python-nest==4.0.3
# homeassistant.components.sensor.whois
pythonwhois==2.4.3