Skip to content

Fix resolving subaddresses#154

Merged
cereal2nd merged 4 commits into
cereal2nd:masterfrom
brefra:Fix-SubAddresses
Dec 21, 2025
Merged

Fix resolving subaddresses#154
cereal2nd merged 4 commits into
cereal2nd:masterfrom
brefra:Fix-SubAddresses

Conversation

@brefra
Copy link
Copy Markdown
Contributor

@brefra brefra commented Dec 21, 2025

Sub addresses of a cached module are missing. This PR adds the discovery of sub addresses.
This PR will fix list index out of range errors like mentioned in #156975 at home-assistant/core

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a bug where subaddresses of cached modules were not being properly discovered, causing "list index out of range" errors. The fix adds a ModuleTypeRequest message during module loading to explicitly trigger subaddress discovery.

Key changes:

  • Import ModuleTypeRequestMessage to enable subaddress discovery requests
  • Send ModuleTypeRequest during load() method to ensure subaddresses are discovered regardless of cache state

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread velbusaio/module.py Outdated
Comment thread velbusaio/module.py Outdated
Comment thread velbusaio/module.py Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Comment thread velbusaio/module.py Outdated
@brefra brefra force-pushed the Fix-SubAddresses branch 2 times, most recently from 3fbdd01 to 6995338 Compare December 21, 2025 18:38
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread velbusaio/module.py Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@cereal2nd cereal2nd merged commit 8c61543 into cereal2nd:master Dec 21, 2025
8 checks passed
@brefra brefra deleted the Fix-SubAddresses branch December 21, 2025 20:21
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.

3 participants