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

[insteon] Fix legacy backward compatibility #17981

Merged
merged 1 commit into from
Dec 25, 2024

Conversation

jsetton
Copy link
Contributor

@jsetton jsetton commented Dec 25, 2024

This change fixes the legacy backward compatibility for thing textual configuration that I overlooked when working on that implementation.

Unfortunately, the framework is preventing things with channel configuration from going through its initialization process due to the original channel type not being available. This requires the user to update their thing configuration file updating the channel types to the new ones. Reverting to the old ones is not possible as some are conflicting with the new ones.

These include:

  • Fixing the missing broadcastOnOff channels when migrating textual configuration.
  • Restoring all the original channel characteristics including any custom labels, compared to only the channel configuration previously.
  • Removing the previously discovered legacy device from the inbox.
  • Fixing a bug in legacy device things where previously linked channels aren't reconnected internally when updated.

These fixes should be included in 4.3.1.

@openhab-bot
Copy link
Collaborator

This pull request has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/insteon-broke-on-upgrade-to-4-3/161055/16

@lsiepel lsiepel added bug An unexpected problem or unintended behavior of an add-on (potentially) not backward compatible labels Dec 25, 2024
Copy link
Contributor

@lsiepel lsiepel left a comment

Choose a reason for hiding this comment

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

One question, otherwise LGTM.

As users with file based configuration need to adapt their configuration, it justifies to add a upgrade notice into the distro repository. Can you add a PR there?

@jsetton
Copy link
Contributor Author

jsetton commented Dec 25, 2024

Can you add a PR there?

Done.

Copy link
Contributor

@lsiepel lsiepel left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM

@lsiepel lsiepel merged commit c7e7f30 into openhab:main Dec 25, 2024
3 checks passed
@lsiepel lsiepel added this to the 5.0 milestone Dec 25, 2024
@jsetton jsetton deleted the insteon-backward-comp-fix branch December 25, 2024 22:05
lsiepel pushed a commit that referenced this pull request Dec 25, 2024
@lsiepel lsiepel added the patch A PR that has been cherry-picked to a patch release branch label Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on patch A PR that has been cherry-picked to a patch release branch (potentially) not backward compatible
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants