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

Temperature conversion function changed and deprecated TEMP_CELSIUS constant from Home Assistant #4

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

tipi85
Copy link

@tipi85 tipi85 commented Apr 21, 2023

This PR is to adapt the function to Home assistant changes in its conversion library : from homeassistant.util.temperature import convert as convert_temperature to homeassistant.util.unit_conversion import TemperatureConverter

Home assistant changed the conversion function.
@tipi85 tipi85 marked this pull request as ready for review April 21, 2023 20:02
@tipi85
Copy link
Author

tipi85 commented Apr 29, 2023

Close #3 #5

@johannbrink
Copy link

I wish the repo owner would merge this.

Home Assistant is throwing a warning : 'TEMP_CELSIUS was used from humidex, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.CELSIUS instead, please report it to the author of the 'humidex' custom integration'
@tipi85 tipi85 changed the title Temperature conversion function changed Temperature conversion function changed and deprecated TEMP_CELSIUS constant from Home Assistant Mar 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants