-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[danfossairunit] Add instruction for channel removal #14473
[danfossairunit] Add instruction for channel removal #14473
Conversation
I will retest this tomorrow when there is a new snapshot build. |
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
07d1f35
to
7e4f1d0
Compare
I have now tested with build 3358, and got it working. First attempt failed though. Dropping the new JAR with the upgrade instructions caused the @J-N-K - can you confirm if this is the intended behavior and/or if my test is invalid? |
@J-N-K - I don't know if you saw my question, but let me rephrase: Can you confirm that the upgrade instructions are only executed when openHAB is started? Otherwise I don't understand my test results. This would probably mean that replacing JAR's between releases, or upgrading bindings from Community Marketplace, will prevent the upgrade from being triggered. |
They are checked when the thing is initialized, so: no, this does not depend on openHAB startup. It may be that it fails if you replace a bundle with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, if you have a scenario that triggers the faulty behavior I can try to see if there is a bug in core.
Thanks. In my tests I was overwriting the JAR in the addons folder. I will try to remove and drop it instead, and repeat my tests. In any case, I was able to trigger the upgrade by changing my test approach, so the PR is ready. @lolodomo, @kaikreuzer - can be merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@J-N-K - I did some additional testing, both replacing and deleting/creating JAR as well as with and without removed channel being linked to an item. I cannot reproduce the mentioned problem in a reliable way, so it seems to be working. |
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Follow-up to #14030
Made possible by openhab/openhab-core#3330
Requires also openhab/openhab-core#3391