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

Remove deprecated methods & properties #332

Merged
merged 5 commits into from
May 2, 2024

Conversation

florian-h05
Copy link
Contributor

  • [rules] Remove deprecated state and receivedTrigger event object properties.
  • [cache] Remove deprecated default cache (users should either use private or shared cache).
  • [actions] Remove createTimerWithArgument (users should use createTimer or setTimeout instead, createTimerWithArgument is not even thread-safe).

All these have been marked as deprecated at least since openHAB 3.4, which was released end of 2022, which means users have had enough time to adjust their code.

@rkoshak FYI. I have checked openhab-rules-tools, only usage of deprecated methods I could find was in open_reminder.yaml and debounce.yaml. However both of these are only published for openHAB 3.x on the marketplace, therefore this should be fine.

`state` and `receivedTrigger` have been marked as deprecated since June 2022.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
The core-provided private and shared cache are available since openHAB 3.4, and the default cache methods have been marked as deprecated since end of 2022.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
`createTimerWithArgument` has been marked as deprecated since openHAB 3.4, and besides of that is not thread-safe.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
@florian-h05 florian-h05 requested a review from a team as a code owner May 2, 2024 10:05
@florian-h05 florian-h05 added enhancement New feature or request breaking change API breaking changes labels May 2, 2024
@florian-h05 florian-h05 added this to the to be released milestone milestone May 2, 2024
@florian-h05 florian-h05 merged commit 9b53ed4 into openhab:main May 2, 2024
4 checks passed
@florian-h05 florian-h05 deleted the remove-deprecations branch May 2, 2024 10:10
@rkoshak
Copy link
Contributor

rkoshak commented May 2, 2024

I want to make sure that those versions of the rule templates remain compatible with the version of the helper library that comes with the 3.4 add-on so I'll leave them as is.

I agree, plenty of time has passed. There shouldn't be any OH 4 users trying to use these.

@florian-h05
Copy link
Contributor Author

so I'll leave them as is.

Sounds reasonable 👍

I agree, plenty of time has passed.

And moving away from the deprecated methods was relatively easy and straighforward.

I am getting rid of the deprecated stuff now because with #331 there already is a breaking change for the next release, so I can now bundle all breaking changes into one release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change API breaking changes enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants