Skip to content

Handle in-flight Modbus reads during Home Assistant shutdown - #2096

Merged
wills106 merged 1 commit into
wills106:mainfrom
rosenrot00:codex/handle-modbus-shutdown
May 30, 2026
Merged

Handle in-flight Modbus reads during Home Assistant shutdown#2096
wills106 merged 1 commit into
wills106:mainfrom
rosenrot00:codex/handle-modbus-shutdown

Conversation

@rosenrot00

@rosenrot00 rosenrot00 commented May 30, 2026

Copy link
Copy Markdown
Contributor

Stopping SolaX Modbus hubs on the Home Assistant stop event and collect expected pymodbus cancellation results from in-flight read tasks during shutdown. This prevents "Request cancelled outside pymodbus" from leaking as an unhandled shutdown exception while preserving normal Modbus error handling during runtime.

@wills106

Copy link
Copy Markdown
Owner

Are you planning to include this in 2026.05.5? Or leave it for a future release?

@rosenrot00

Copy link
Copy Markdown
Contributor Author

You can add this one to 2026.05.05 as well. Not a dramatic one but currently we cause errors when HA restarts.

@wills106
wills106 marked this pull request as ready for review May 30, 2026 11:37
@wills106
wills106 merged commit 7c8d603 into wills106:main May 30, 2026
17 checks passed
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.

2 participants