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
Bugfix Thermostat Fahrenheit support #13477
Conversation
* util -> temperature_to_homekit * util -> temperature_to_states * util -> convert_to_float
|
||
|
||
def temperature_to_states(temperature, unit): | ||
"""Convert temperature back form Celsius to Home Assistant unit.""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want to preserve the original unit of the climate device. That's why I only use util.temperature.convert
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, good 👍
* Bugfix thermostat temperature conversion * util -> temperature_to_homekit * util -> temperature_to_states * util -> convert_to_float * Added tests, deleted log msg
Description:
Fixes unit missing unit conversion from Fahrenheit to Celsius (from HomeKit).
Related issue (if applicable): fixes #13463
Checklist:
tox
. Your PR cannot be merged unless tests pass