Skip to content

Comments

[homekit.io] Fix unit conversions on step values for temperatures#18233

Merged
lsiepel merged 1 commit intoopenhab:mainfrom
ccutrer:homekit-temperature-step
Feb 9, 2025
Merged

[homekit.io] Fix unit conversions on step values for temperatures#18233
lsiepel merged 1 commit intoopenhab:mainfrom
ccutrer:homekit-temperature-step

Conversation

@ccutrer
Copy link
Member

@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>
@jlaur jlaur changed the title [homekit] fix unit conversions on step values for temperatures [homekit] Fix unit conversions on step values for temperatures Feb 23, 2025
matgroe pushed a commit to matgroe/openhab-addons that referenced this pull request Feb 24, 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>
phenix1990 pushed a commit to phenix1990/openhab-addons that referenced this pull request Jul 31, 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>
@andrewfg andrewfg changed the title [homekit] Fix unit conversions on step values for temperatures [io.homekit] Fix unit conversions on step values for temperatures Feb 11, 2026
@andrewfg andrewfg changed the title [io.homekit] Fix unit conversions on step values for temperatures [homekit.io] Fix unit conversions on step values for temperatures Feb 15, 2026
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