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

Deprecated constant values #52

Closed
Puebllo opened this issue Jan 10, 2024 · 1 comment · Fixed by #55
Closed

Deprecated constant values #52

Puebllo opened this issue Jan 10, 2024 · 1 comment · Fixed by #55

Comments

@Puebllo
Copy link

Puebllo commented Jan 10, 2024

Hey,
After HA Update, I saw in logs following infos. It's not crucial for now but it'll be easier to read them without it :)

Logger: homeassistant.const
Source: helpers/deprecation.py:205
First occurred: January 9, 2024 at 10:57:40 PM (1 occurrences)
Last logged: January 9, 2024 at 10:57:40 PM

TEMP_CELSIUS was used from tech, 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 'tech' custom integration
Logger: homeassistant.components.climate.const
Source: helpers/deprecation.py:205
Integration: Climate (documentation, issues)
First occurred: January 9, 2024 at 10:57:40 PM (10 occurrences)
Last logged: January 9, 2024 at 10:57:40 PM

CURRENT_HVAC_COOL was used from tech, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACAction.COOLING instead, please report it to the author of the 'tech' custom integration
CURRENT_HVAC_IDLE was used from tech, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACAction.IDLE instead, please report it to the author of the 'tech' custom integration
CURRENT_HVAC_OFF was used from tech, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACAction.OFF instead, please report it to the author of the 'tech' custom integration
SUPPORT_PRESET_MODE was used from tech, this is a deprecated constant which will be removed in HA Core 2025.1. Use ClimateEntityFeature.PRESET_MODE instead, please report it to the author of the 'tech' custom integration
SUPPORT_TARGET_TEMPERATURE was used from tech, this is a deprecated constant which will be removed in HA Core 2025.1. Use ClimateEntityFeature.TARGET_TEMPERATURE instead, please report it to the author of the 'tech' custom integration
Logger: homeassistant.helpers.entity
Source: helpers/entity.py:1520
First occurred: January 9, 2024 at 10:57:43 PM (8 occurrences)
Last logged: January 9, 2024 at 10:57:43 PM

Entity None (<class 'custom_components.tech.climate.TechThermostat'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <ClimateEntityFeature.TARGET_TEMPERATURE: 1>, please report it to the author of the 'tech' custom integration and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation
@Roger954
Copy link

Roger954 commented Jan 31, 2024

I just found your open issue, got the same messages in the HA logs.
Hope that it will be fixed somewhere this year.

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 a pull request may close this issue.

2 participants