mariusz-ostoja-swierczynski / tech-controllers

TECH Controllers integration for Home Assistant
MIT License
96 stars 67 forks source link

Deprecated constant values #52

Closed Puebllo closed 8 months ago

Puebllo commented 10 months ago

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 commented 9 months ago

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