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

[homekit] fix unit conversions on step values for temperatures #18233

Merged
merged 1 commit into from
Feb 9, 2025

Conversation

ccutrer
Copy link
Contributor

@ccutrer ccutrer commented Feb 6, 2025

getConfigurationAsQuantity was using toUnitRelative appropriately, but the final conversion to Celsius was not, resulting in a 1 °F step being interpreted as a -17.5 °C step!

getConfigurationAsQuantity was using toUnitRelative appropriately,
but the final conversion to Celsius was not, resulting in a 1 °F
step being interpreted as a -17.5 °C step!

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

@yfre yfre left a comment

Choose a reason for hiding this comment

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

LGTM

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 0b13f65 into openhab:main Feb 9, 2025
2 checks passed
@lsiepel lsiepel added this to the 5.0 milestone Feb 9, 2025
@lsiepel lsiepel added the bug An unexpected problem or unintended behavior of an add-on label Feb 9, 2025
@ccutrer ccutrer deleted the homekit-temperature-step branch February 9, 2025 15:08
chilobo pushed a commit to chilobo/openhab-addons that referenced this pull request Feb 10, 2025
…ab#18233)

getConfigurationAsQuantity was using toUnitRelative appropriately,
but the final conversion to Celsius was not, resulting in a 1 °F
step being interpreted as a -17.5 °C step!

Signed-off-by: Cody Cutrer <cody@cutrer.us>
Signed-off-by: Christian Koch <78686276+chilobo@users.noreply.github.com>
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants