Skip to content

Adapt library to pymodbus 3.10.0#8

Merged
ThyMYthOS merged 10 commits intoThyMYthOS:masterfrom
Djcd:master
Aug 9, 2025
Merged

Adapt library to pymodbus 3.10.0#8
ThyMYthOS merged 10 commits intoThyMYthOS:masterfrom
Djcd:master

Conversation

@Djcd
Copy link

@Djcd Djcd commented Aug 7, 2025

Hi together,

I don't contribute that much code 😄 and i dunno if i understood every piece of your helpful library.

With pymodbus 3.10.0 there were some changes which were introduced with this PR pymodbus-dev/pymodbus#2600.

Especially those should be interesting for this project:

  • ModbusSlaveContext replaced by ModbusDeviceContext
  • slave=, slaves= replaced by device_id=, device_ids=

i tried my best to adapt this into your code, but please have another look into it. I could check it with my home assistant instance and this addon https://github.com/pail23/stiebel_eltron_isg_component and it seems to work again 👍

Kind regards,
David

Djcd added 2 commits August 7, 2025 17:59
ModbusSlaveContext replaced by ModbusDeviceContext & slave=, slaves= replaced by device_id=,
device_ids= & slave request names changed to device
@pail23
Copy link

pail23 commented Aug 7, 2025

Many thanks for the changes.

  1. Please update the modbus library version in pyproject.toml: "pymodbus>=3.10.0",
  2. Please run the ./scripts/gen.sh script to update the generated files

The rest looks good to me.

@Djcd
Copy link
Author

Djcd commented Aug 7, 2025

thanks for the additions @pail23, the ./scripts/gen.sh did some strange formatting, hopefully thats okay

@pail23
Copy link

pail23 commented Aug 9, 2025

@ThyMYthOS This is an important fix for the stiebel eltron isg custom component which was brocken in the last homeassistant update.

How can I support a fast merge of this PR and a subsequent release of this library?

@ThyMYthOS
Copy link
Owner

WTF? Why would they (pymodbus) introduce a breaking change by only updating the minor version number?

The changes in pystiebeleltron.py seem to bei mainly style related. Could that be fixed in a separate PR?

@Djcd
Copy link
Author

Djcd commented Aug 9, 2025

Hi @ThyMYthOS,

i reverted the style related stuff from pystiebeleltron.py. It seems for me that pymodbus does not follow the semantic version sheme... i will fix that test 😄

@Djcd
Copy link
Author

Djcd commented Aug 9, 2025

merged with the new upstream version

@Djcd Djcd requested a review from ThyMYthOS August 9, 2025 10:18
@ThyMYthOS ThyMYthOS merged commit 9fe7703 into ThyMYthOS:master Aug 9, 2025
3 checks passed
@Djcd
Copy link
Author

Djcd commented Aug 9, 2025

thanks for the fast reply and help @ThyMYthOS !

@pail23 i don't know how the next steps are. do we need an update of the component to force home assistant / hacs to pull the changes in the dependency?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants