Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
remmob committed Jan 1, 2025
1 parent 0140ca7 commit 6f7e2a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/itho_amber/hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from datetime import timedelta
from voluptuous.validators import Number

from pymodbus.register_read_message import ReadHoldingRegistersResponse
# from pymodbus.register_read_message import ReadHoldingRegistersResponse
from pymodbus.client import ModbusTcpClient
from pymodbus.constants import Endian
from pymodbus.exceptions import ConnectionException
Expand Down Expand Up @@ -62,7 +62,7 @@ def close(self) -> None:
with self._lock:
self._client.close()

def _read_holding_registers(self, unit, address, count) -> ReadHoldingRegistersResponse:
def _read_holding_registers(self, unit, address, count) -> None: # ReadHoldingRegistersResponse:
"""Read holding registers."""
with self._lock:
return self._client.read_holding_registers(address=address, count=count, slave=unit)
Expand Down

0 comments on commit 6f7e2a6

Please sign in to comment.