mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Fix MySensors climate (#8193)
This commit is contained in:
parent
1b563b0640
commit
a082ffca1d
@ -67,7 +67,12 @@ class MySensorsHVAC(mysensors.MySensorsDeviceEntity, ClimateDevice):
|
|||||||
@property
|
@property
|
||||||
def current_temperature(self):
|
def current_temperature(self):
|
||||||
"""Return the current temperature."""
|
"""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
|
@property
|
||||||
def target_temperature(self):
|
def target_temperature(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user