Skip to content

Commit

Permalink
* Added payload.py from pyModbus as a workaround for deprecation mess…
Browse files Browse the repository at this point in the history
…ages.
  • Loading branch information
alexdelprete committed Feb 10, 2025
1 parent aeaf509 commit f4042e9
Show file tree
Hide file tree
Showing 2 changed files with 459 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom_components/abb_powerone_pvi_sunspec/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
from pymodbus.client import ModbusTcpClient
from pymodbus.constants import Endian
from pymodbus.exceptions import ConnectionException, ModbusException
from pymodbus.payload import BinaryPayloadDecoder

from .const import (
DEVICE_GLOBAL_STATUS,
Expand All @@ -23,6 +22,9 @@
SUNSPEC_MODEL_160_ID,
)

# from pymodbus.payload import BinaryPayloadDecoder
from .modbuspayload import BinaryPayloadDecoder

_LOGGER = logging.getLogger(__name__)


Expand Down
Loading

0 comments on commit f4042e9

Please sign in to comment.