* Fixed issue #3624 and bumped python-nest to 2.10.0 version * Fixed return state when accessing attribute operation_mode * Fixed typo
This commit is contained in:
1 parent
4f0064b00e
commit
70fc94003d
3 files changed
+6
-3
No files matched your search
@@ -109,7 +109,10 @@ class NestBasicSensor(NestSensor):
|
||||
@property
|
||||
def state(self):
|
||||
"""Return the state of the sensor."""
|
||||
return getattr(self.device, self.variable)
|
||||
if self.variable == 'operation_mode':
|
||||
return getattr(self.device, "mode")
|
||||
else:
|
||||
return getattr(self.device, self.variable)
|
||||
|
||||
@property
|
||||
def unit_of_measurement(self):
|
||||
|
||||
Reference in new issue
Block a user