Skip to content

Fix ModbusServerContext initialization with dict devices parameter#2944

Open
km-64 wants to merge 2 commits into
pymodbus-dev:devfrom
km-64:bugfix/server-context-simdevices-initialization
Open

Fix ModbusServerContext initialization with dict devices parameter#2944
km-64 wants to merge 2 commits into
pymodbus-dev:devfrom
km-64:bugfix/server-context-simdevices-initialization

Conversation

@km-64

@km-64 km-64 commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Addresses the solution described in issue #2943

km-64 added 2 commits June 24, 2026 16:34
 - Append `entry.simdevice` not `entry` because it's the wrong type
 - Assign the `id` attribute of `entry.simdevice` not `entry`
@km-64

km-64 commented Jun 24, 2026

Copy link
Copy Markdown
Contributor Author

Added type information mentioned in issue #2943 in 263c9d9 (this PR)

@km-64

km-64 commented Jun 24, 2026

Copy link
Copy Markdown
Contributor Author

Also more generally, I noticed that this file isn't formatted with ruff. Quite a few files show up as unformatted when I run ruff format --check: 112 files would be reformatted, 12 files already formatted.

Maybe at some point uv run ruff format --check could be added as a step in ci.yml? It would fail when there are changes ruff would make. Someone would have to make a big formatting commit.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant