Skip to content

Commit

Permalink
Cancel COP computation if defrost is in progress
Browse files Browse the repository at this point in the history
Fix #181
  • Loading branch information
kamaradclimber committed Feb 10, 2024
1 parent 166b6f9 commit d6a3e10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/aquarea/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def compute_cop(values) -> Optional[float]:
# read defrost and cancel COP if defrost is on
if bit_to_bool(values[0]):
_LOGGER.debug("Defrost is in progress, cannot compute COP, it would not make sense")
return -1
return None
values = values[1:]
assert len(values) == 24
production = extract_sum(values[18:21] + values[12:15] + values[0:3] + values[6:9])
Expand Down

0 comments on commit d6a3e10

Please sign in to comment.