From 4c823cec0db00bdd936b91f12a4aaacf5d334297 Mon Sep 17 00:00:00 2001 From: Thomas Germain <12560542+thomasgermain@users.noreply.github.com> Date: Tue, 13 Jun 2023 13:23:40 +0200 Subject: [PATCH] fix: target temp hotwater (#208) --- custom_components/multimatic/coordinator.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/custom_components/multimatic/coordinator.py b/custom_components/multimatic/coordinator.py index 143e777..7c71b31 100644 --- a/custom_components/multimatic/coordinator.py +++ b/custom_components/multimatic/coordinator.py @@ -3,6 +3,7 @@ from datetime import timedelta import logging +import math from pymultimatic.api import ApiError, defaults from pymultimatic.model import ( @@ -201,7 +202,9 @@ async def set_hot_water_target_temperature(self, entity, target_temp): hotwater.id, OperatingModes.ON ) hotwater.operating_mode = OperatingModes.ON - await self._manager.set_hot_water_setpoint_temperature(hotwater.id, target_temp) + await self._manager.set_hot_water_setpoint_temperature( + hotwater.id, math.ceil(target_temp) + ) hotwater.target_high = target_temp await self._refresh(touch_system, entity)