Skip to content

[ahawastecollection] Fix upgrade instructions#20417

Merged
jlaur merged 2 commits intoopenhab:mainfrom
lsiepel:ahawastecollection-instructions
Mar 22, 2026
Merged

[ahawastecollection] Fix upgrade instructions#20417
jlaur merged 2 commits intoopenhab:mainfrom
lsiepel:ahawastecollection-instructions

Conversation

@lsiepel
Copy link
Contributor

@lsiepel lsiepel commented Mar 21, 2026

Somehow this wrong tag was not discovered during tests and review.

Fixes: #20383

Should be backported as it is part of 5.1.3 and the current binding is unusable

Signed-off-by: Leo Siepel <leosiepel@gmail.com>
@lsiepel lsiepel requested a review from soenkekueper as a code owner March 21, 2026 13:35
Copilot AI review requested due to automatic review settings March 21, 2026 13:35
@lsiepel lsiepel added the bug An unexpected problem or unintended behavior of an add-on label Mar 21, 2026
Copy link
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

Fixes the AHA Waste Collection binding’s upgrade instructions by correcting the XML element used to specify channel types in update.xml, addressing the unusable binding state reported in issue #20383.

Changes:

  • Replace <typeId> with <type> for add-channel instructions in target versions 1 and 2.
  • Ensure the upgrade instructions reference the correct channel type identifiers during migration.

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

@lsiepel
Copy link
Contributor Author

lsiepel commented Mar 21, 2026

@andrewfg do you have any thoughts about wether we should add a validation for upgrade instructions similar to the thing-type ?

@andrewfg
Copy link
Contributor

thoughts about whether we should add a validation

All of thing-type, update-description, config-description, and addon are schema validated passively via the Eclipse or Visual Studio Code IDEs. But only thing-type get actively validated during the CI build. And indeed I think that thing-type only gets partially validated since if it imports a config-description then I think that part is not validated. So the current approach is certainly very inconsistent. Personally I would favour applying schema validation to all. (But I am sure other will have other opinions)

@lsiepel
Copy link
Contributor Author

lsiepel commented Mar 21, 2026

Thanks, I don't see this validation/check in vscode. I would opt to add it as build gatekeepere, to prevent issues like this. I might create a PR to do the validation similar to the thing-type.xml

@andrewfg
Copy link
Contributor

don't see this validation/check in vscode

I think you need an xml plugin

@jlaur
Copy link
Contributor

jlaur commented Mar 21, 2026

Regression of #19834 and #19833. @lsiepel - cannot be backported unless you separate into two PR's.

Signed-off-by: Leo Siepel <leosiepel@gmail.com>
@lsiepel
Copy link
Contributor Author

lsiepel commented Mar 22, 2026

This is now a fix for the regression of #19833 and should be backported

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!

@jlaur jlaur merged commit 0438a89 into openhab:main Mar 22, 2026
2 checks passed
@jlaur jlaur added this to the 5.2 milestone Mar 22, 2026
jlaur pushed a commit that referenced this pull request Mar 22, 2026
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
@jlaur jlaur added the backported A PR that has been cherry-picked to a patch release branch label Mar 22, 2026
@lsiepel lsiepel deleted the ahawastecollection-instructions branch March 22, 2026 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backported A PR that has been cherry-picked to a patch release branch bug An unexpected problem or unintended behavior of an add-on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ahawastecollection] HANDLER_MISSING_ERROR - Handler factory not found

4 participants