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

Make DateTimeType Comparable #4364

Merged
merged 2 commits into from
Aug 28, 2024
Merged

Conversation

jimtng
Copy link
Contributor

@jimtng jimtng commented Aug 27, 2024

While working on the State Profile PR, I came across the issue that DateTimeType is not comparable. Making it comparable will enable inequality comparisons in the profile without having to resort to special handling for DateTimeType.

Signed-off-by: Jimmy Tanagra <[email protected]>
@jimtng jimtng requested a review from a team as a code owner August 27, 2024 12:40
@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/state-filter-range-filter-profile/158025/11

Copy link
Member

@wborn wborn left a comment

Choose a reason for hiding this comment

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

Can you also add some unit tests so it keeps working?

Signed-off-by: Jimmy Tanagra <[email protected]>
@jimtng jimtng requested a review from wborn August 28, 2024 06:53
Copy link
Member

@wborn wborn left a comment

Choose a reason for hiding this comment

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

Thank you!

@wborn wborn merged commit 66d55f7 into openhab:main Aug 28, 2024
5 checks passed
@wborn wborn added this to the 4.3 milestone Aug 28, 2024
@wborn wborn added the enhancement An enhancement or new feature of the Core label Aug 28, 2024
@jimtng jimtng deleted the datetimetype-comparable branch August 28, 2024 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature of the Core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants