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

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

Open
ruudw opened this issue Jul 23, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@ruudw
Copy link

ruudw commented Jul 23, 2024

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

@ruudw ruudw added the bug Something isn't working label Jul 23, 2024
@iMicknl
Copy link
Owner

iMicknl commented Jul 28, 2024

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

@ruudw
Copy link
Author

ruudw commented Jul 28, 2024

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. :)

@AnthonyBe
Copy link

AnthonyBe commented Oct 5, 2024

I just updated from 0.3.12 where I was seeing this same warning, to 0.4.0b5 and I am no longer seeing this warning (TEMP_CELSIUS was used from nest_protect, this is a deprecated constant)

I'm also no longer seeing the other deprecation warning - StrEnum was used from nest_protect, this is a deprecated alias

Thanks @iMicknl !

@iMicknl
Copy link
Owner

iMicknl commented Oct 5, 2024

@AnthonyBe this warning indeed occurs on the current 'main' branch (0.3.12), this is fixed in the beta branch, but due to some issues and time constraints I haven't been able to move from beta to a new stable release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants