Fix MySensors climate (#8193)
This commit is contained in:
1 parent
1b563b0640
commit
a082ffca1d
1 file changed
+6
-1
@@ -67,7 +67,12 @@ class MySensorsHVAC(mysensors.MySensorsDeviceEntity, ClimateDevice):
|
||||
@property
|
||||
def current_temperature(self):
|
||||
"""Return the current temperature."""
|
||||
return float(self._values.get(self.gateway.const.SetReq.V_TEMP))
|
||||
value = self._values.get(self.gateway.const.SetReq.V_TEMP)
|
||||
|
||||
if value is not None:
|
||||
value = float(value)
|
||||
|
||||
return value
|
||||
|
||||
@property
|
||||
def target_temperature(self):
|
||||
|
||||
Reference in new issue
Block a user