Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mqtt.homeassistant] Fix duplicate component resolution when unique_id is set #17803

Merged
merged 2 commits into from
Nov 25, 2024

Conversation

ccutrer
Copy link
Contributor

@ccutrer ccutrer commented Nov 25, 2024

unique_id is only unique per component type. so we need to a) take that into account, and b) use that when resolving duplicates

…d is set

unique_id is only unique per component type. so we need to a) take that into
account, and b) use that when resolving duplicates

Signed-off-by: Cody Cutrer <[email protected]>
@ccutrer ccutrer force-pushed the mqtt-homeassistant-dup-unique_id branch from 9582102 to 21e4ea3 Compare November 25, 2024 02:24
Copy link
Contributor

@jlaur jlaur left a comment

Choose a reason for hiding this comment

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

Thanks! Just one minor comment from my side.

…rg/openhab/binding/mqtt/homeassistant/internal/component/AbstractComponent.java

Co-authored-by: Jacob Laursen <[email protected]>
Signed-off-by: Cody Cutrer <[email protected]>
@ccutrer
Copy link
Contributor Author

ccutrer commented Nov 25, 2024

Thanks! Just one minor comment from my side.

Heh, yup. Those two cases started off as different resolutions, but ended up the same. Fixed.

@jlaur jlaur changed the title [mqtt.homeassistant] fix duplicate component resolution when unique_id is set [mqtt.homeassistant] Fix duplicate component resolution when unique_id is set Nov 25, 2024
Copy link
Contributor

@jlaur jlaur left a comment

Choose a reason for hiding this comment

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

LGTM

@jlaur jlaur merged commit 546bb56 into openhab:main Nov 25, 2024
5 checks passed
@jlaur jlaur added this to the 4.3 milestone Nov 25, 2024
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