Bump python-nest to 4.0.3 (#15098)

Resolve network reconnect issue
This commit is contained in:
Jason Hu authored and Paulus Schoutsen committed 2018-06-25 13:04:32 -04:00
1 parent 42ba2a68ce
commit 6c0fc65eaf
4 files changed
+6 -4

No files matched your search

+2 -1
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)