iMicknl / ha-nest-protect

Nest Protect integration for Home Assistant. This will allow you to integrate your smoke, heat, co and occupancy status real-time in HA.
MIT License
330 stars 60 forks source link

Deprecation of TEMP_CELCIUS in HA Core 2025.1 - Use UnitOfTemperature.CELSIUS instead #346

Open ruudw opened 1 month ago

ruudw commented 1 month ago

The problem

Not really a bug, but rather a heads-up. As I plowed through my configuration I noticed this log:

Logger: homeassistant.const
Source: helpers/deprecation.py:197
First occurred: 22:01:48 (1 occurrences)
Last logged: 22:01:48

TEMP_CELSIUS was used from nest_protect, 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 'nest_protect' custom integration

Therefore, I'll provide this kind reminder. :)

What version of this integration (ha-nest-protect) has the issue?

v0.4.0b4

What version of Home Assistant Core has the issue?

2025.1

Device / Model

No response

Diagnostics information

No response

Home Assistant log

Logs ``` Logger: homeassistant.const Source: helpers/deprecation.py:197 First occurred: 22:01:48 (1 occurrences) Last logged: 22:01:48 TEMP_CELSIUS was used from nest_protect, 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 'nest_protect' custom integration ```

Additional information

No response

iMicknl commented 1 month ago

Are you sure you use v0.4.0b4? This constant is not present in the beta branch anymore. :)

ruudw commented 1 month ago

Yeah I might be in the wrong here. I took the version number from HACS directly but I just considered that might not be the installed version. :)