1 parent
42ba2a68ce
commit
6c0fc65eaf
4 files changed
+6
-4
No files matched your search
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user