mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Fix setting temperature in Celsius on radiotherm CT50 (#4270)
This commit is contained in:
parent
618a86a37c
commit
7d28d9d6b4
@ -135,9 +135,9 @@ class RadioThermostat(ClimateDevice):
|
|||||||
if temperature is None:
|
if temperature is None:
|
||||||
return
|
return
|
||||||
if self._current_operation == STATE_COOL:
|
if self._current_operation == STATE_COOL:
|
||||||
self.device.t_cool = temperature
|
self.device.t_cool = round(temperature * 2.0) / 2.0
|
||||||
elif self._current_operation == STATE_HEAT:
|
elif self._current_operation == STATE_HEAT:
|
||||||
self.device.t_heat = temperature
|
self.device.t_heat = round(temperature * 2.0) / 2.0
|
||||||
if self.hold_temp:
|
if self.hold_temp:
|
||||||
self.device.hold = 1
|
self.device.hold = 1
|
||||||
else:
|
else:
|
||||||
@ -159,6 +159,6 @@ class RadioThermostat(ClimateDevice):
|
|||||||
elif operation_mode == STATE_AUTO:
|
elif operation_mode == STATE_AUTO:
|
||||||
self.device.tmode = 3
|
self.device.tmode = 3
|
||||||
elif operation_mode == STATE_COOL:
|
elif operation_mode == STATE_COOL:
|
||||||
self.device.t_cool = self._target_temperature
|
self.device.t_cool = round(self._target_temperature * 2.0) / 2.0
|
||||||
elif operation_mode == STATE_HEAT:
|
elif operation_mode == STATE_HEAT:
|
||||||
self.device.t_heat = self._target_temperature
|
self.device.t_heat = round(self._target_temperature * 2.0) / 2.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user