We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a52f24 commit 50baa7aCopy full SHA for 50baa7a
custom_components/aquarea/definitions.py
@@ -355,7 +355,7 @@ def bit_to_bool(value: str) -> Optional[bool]:
355
def read_demandcontrol(value: str) -> Optional[int]:
356
i = float(value)
357
if i >= 43 and i <= 234:
358
- return int((i - 43) / (234 - 43) * 100)
+ return round((i - 43) / (234 - 43) * 100)
359
return None
360
361
0 commit comments