diff --git a/airton_ac/device.py b/airton_ac/device.py index d4c8ee1..3ad3d58 100644 --- a/airton_ac/device.py +++ b/airton_ac/device.py @@ -172,7 +172,7 @@ def set_temperature(self, temp: float) -> Values: """Set temperature. Will round and multiply by 10 so that 18.5 will be 180. """ - set_point = max(min(int(temp), 31), 16) * 10 + set_point = max(min(round(temp), 31), 16) * 10 return self._update({Command.SET_POINT.value: set_point}) def set_mode(self, mode: Mode) -> Values: