Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Change TEMP_CELSIUS to UnitOfTemperature #209

Conversation

kimzeuner
Copy link
Contributor

@kimzeuner kimzeuner commented Apr 23, 2024

I just saw the following warning in my system:
"TEMP_CELSIUS was used from indego, 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 'indego' custom integration"

So i changed TEMP_CELSIUS to UnitOfTemperature

Update:
Just saw that also DEVICE_CLASS_CONNECTIVITY and DEVICE_CLASS_PROBLEM will be removed so changed these to BinarySensorDeviceClass.CONNECTIVITY and BinarySensorDeviceClass.PROBLEM

Changed TEMP_CELSIUS to UnitOfTemperature because TEMP_CELSIUS will be removed with HA Core 2025.1
Changed DEVICE_CLASS_CONNECTIVITY and DEVICE_CLASS_PROBLEM to BinarySensorDeviceClass.CONNECTIVITY and BinarySensorDeviceClass.PROBLEM
@sander1988
Copy link
Owner

@kimzeuner - Yes you are right, we need to replace these before HA 2025.1 is releases (so this year).

@jm-73 - Have also applied these fixes to #205

@sander1988
Copy link
Owner

Merged with #205.

@sander1988 sander1988 closed this May 19, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants