Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
fix: target temp hotwater (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasgermain authored Jun 13, 2023
1 parent 944ca8c commit 4c823ce
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion custom_components/multimatic/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

from datetime import timedelta
import logging
import math

from pymultimatic.api import ApiError, defaults
from pymultimatic.model import (
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 4c823ce

Please sign in to comment.