Skip to content

Move version checks to run as early as possible - #1088

Merged
WillCodeForCats merged 7 commits into
mainfrom
move-version-check
Sep 15, 2026
Merged

WillCodeForCats merged 7 commits into
mainfrom
move-version-check

Conversation

@WillCodeForCats

@WillCodeForCats WillCodeForCats commented Sep 15, 2026 •

Copy link
Copy Markdown
Owner

Move version checks to run as early as possible in the init file instead of hub.

This way we can try to catch missing installs or old versions of our requirements (modbus-connection and tmodbus) instead of something else raising an exception later. Raising ConfigEntryError to HA with a message we can define is more user friendly, and can offer suggestions how to fix.

Also added checks for if it's not installed at all (possibly due to a network error when HA tries to satisfy requirements).

@WillCodeForCats WillCodeForCats self-assigned this Sep 15, 2026
@WillCodeForCats
WillCodeForCats merged commit 9058ccc into main Sep 15, 2026
16 checks passed
WillCodeForCats added a commit that referenced this pull request Sep 17, 2026
Only used in diagnostics, so we don't need these anymore after PR #1088
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