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

fix invertible unit conversions when sent via a binding #3134

Merged
merged 3 commits into from Oct 27, 2022

Conversation

ccutrer
Copy link
Contributor

@ccutrer ccutrer commented Oct 25, 2022

No description provided.

Signed-off-by: Cody Cutrer <cody@cutrer.us>
@ccutrer ccutrer requested a review from a team as a code owner October 25, 2022 22:20
@J-N-K
Copy link
Member

J-N-K commented Oct 26, 2022

Did you check if there are other places in the code where this would be necessary?

@ccutrer
Copy link
Contributor Author

ccutrer commented Oct 26, 2022

I checked with the original commit. I'm not sure how I missed this one. Checking again, ItemUIRegistryImpl.convertStateToLabelUnit is a candidate to change, but I'm not familiar with what it does. Looks like sitemaps maybe? Seems like it should; I'll push up a commit for it.

The functions in QuantityTypeArithmeticGroupFunction are other possibilities, but I'm not sure if it makes any sense to support summing mireds.

Signed-off-by: Cody Cutrer <cody@cutrer.us>
Signed-off-by: Cody Cutrer <cody@cutrer.us>
Copy link
Member

@J-N-K J-N-K 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

@J-N-K J-N-K added the bug An unexpected problem or unintended behavior of the Core label Oct 27, 2022
@J-N-K J-N-K added this to the 3.4 milestone Oct 27, 2022
@J-N-K J-N-K merged commit a7d912d into openhab:main Oct 27, 2022
@ccutrer ccutrer deleted the mired-conversion-from-binding branch November 29, 2022 16:15
splatch pushed a commit to ConnectorIO/copybara-hab-core that referenced this pull request Jul 12, 2023
…emUIRegistry (openhab#3134)

* fix invertible unit conversions when sent via a binding
* do invertible unit conversion in ItemUIRegistry

Signed-off-by: Cody Cutrer <cody@cutrer.us>
GitOrigin-RevId: a7d912d
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 the Core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants