Skip to content

Commit

Permalink
debug percentage not available
Browse files Browse the repository at this point in the history
  • Loading branch information
OStrama committed Oct 27, 2024
1 parent 62e23a1 commit 729f182
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion custom_components/weishaupt_modbus/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,6 @@ def __init__(self, config_entry, modbus_item, modbus_api) -> None:

def calc_temperature(self, val: float):
"""Calcualte temperature."""

match val:
case None:
return None
Expand Down
3 changes: 2 additions & 1 deletion custom_components/weishaupt_modbus/modbusobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ def check_temperature(self, val):
def check_percentage(self, val):
if val == 65535:
self._modbus_item.is_invalid = True
self._modbus_item.is_invalid = False
else:
self._modbus_item.is_invalid = False

def check_status(self, val):
self._modbus_item.is_invalid = False
Expand Down

0 comments on commit 729f182

Please sign in to comment.