Skip to content

Fix duplicate hub discovery caused by numeric mDNS suffixes - Issue #692 - #779

Merged
andyblac merged 3 commits into
asantaga:devfrom
andyblac:Issue692
Oct 28, 2026
Merged

andyblac merged 3 commits into
asantaga:devfrom
andyblac:Issue692

Conversation

@andyblac

Copy link
Copy Markdown
Collaborator

Summary

Fixes #692

Home Assistant could offer an already-configured Wiser hub as a new integration when mDNS discovery appended a numeric suffix to its name, for example:

  • Configured hub: WiserHeatxxxxxx
  • Rediscovered name: WiserHeatxxxxxx-4

The suffixed name generated a different unique ID, so the existing config entry was not recognised.

Changes

  • Match numerically suffixed discovery names against configured Wiser hubs.
  • Reuse the configured hub name and unique ID when a match is found.
  • Preserve suffixed names for genuinely unknown hubs.
  • Add regression tests covering both cases.
  • Update the changelog.

Testing

Added tests confirming that:

  • A configured hub rediscovered with a numeric suffix is correctly rejected as already configured.
  • An unknown hub with a numeric suffix retains its discovered name.

@andyblac andyblac changed the title Issue692 Fix duplicate hub discovery caused by numeric mDNS suffixes - Issue #692 Oct 28, 2026
@andyblac
andyblac merged commit 6b34763 into asantaga:dev Oct 28, 2026
2 checks passed
@andyblac
andyblac deleted the Issue692 branch October 28, 2026 18:40
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