Skip to content

Pymodbus 4.0.0 #855

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ After rebooting Home Assistant, this integration can be configured through the i
[WillCodeForCats/solaredge-modbus-multi/wiki](https://github.com/WillCodeForCats/solaredge-modbus-multi/wiki)

### Required Versions
* Home Assistant 2025.2.0 or newer
* Home Assistant 2025.7.0 or newer
* Python 3.11 or newer
* pymodbus 3.8.3 or newer
* pymodbus 4.0.0 or newer

## Specifications
[WillCodeForCats/solaredge-modbus-multi/tree/main/doc](https://github.com/WillCodeForCats/solaredge-modbus-multi/tree/main/doc)
Expand Down
6 changes: 3 additions & 3 deletions custom_components/solaredge_modbus_multi/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
DEFAULT_NAME = "SolarEdge"

# raise a startup exception if pymodbus version is less than this
PYMODBUS_REQUIRED_VERSION = "3.8.3"
PYMODBUS_REQUIRED_VERSION = "4.0.0"

# units missing in homeassistant core
ENERGY_VOLT_AMPERE_HOUR: Final = "VAh"
Expand Down Expand Up @@ -42,9 +42,9 @@ class ModbusExceptions:
IllegalFunction = 0x01
IllegalAddress = 0x02
IllegalValue = 0x03
SlaveFailure = 0x04
DeviceFailure = 0x04
Acknowledge = 0x05
SlaveBusy = 0x06
DeviceBusy = 0x06
NegativeAcknowledge = 0x07
MemoryParityError = 0x08
GatewayPathUnavailable = 0x0A
Expand Down
4 changes: 2 additions & 2 deletions custom_components/solaredge_modbus_multi/hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ async def modbus_read_holding_registers(self, unit, address, rcount):
self._rr_count = rcount

result = await self._client.read_holding_registers(
address=self._rr_address, count=self._rr_count, slave=self._rr_unit
address=self._rr_address, count=self._rr_count, device_id=self._rr_unit
)

if result.isError():
Expand Down Expand Up @@ -578,7 +578,7 @@ async def write_registers(self, unit: int, address: int, payload) -> None:
result = await self._client.write_registers(
address=self._wr_address,
values=self._wr_payload,
slave=self._wr_unit,
device_id=self._wr_unit,
)

self.has_write = address
Expand Down
2 changes: 1 addition & 1 deletion custom_components/solaredge_modbus_multi/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
"iot_class": "local_polling",
"issue_tracker": "https://github.com/WillCodeForCats/solaredge-modbus-multi/issues",
"loggers": ["custom_components.solaredge_modbus_multi"],
"requirements": ["pymodbus>=3.8.3"],
"requirements": ["pymodbus>=4.0.0"],
"version": "3.1.4"
}
2 changes: 1 addition & 1 deletion hacs.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "SolarEdge Modbus Multi",
"content_in_root": false,
"homeassistant": "2025.2.0"
"homeassistant": "2025.7.0"
}
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pymodbus>=3.8.3
pymodbus>=4.0.0