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

Constant deprecation in HA 2024.1 #130

Closed
elarsson1 opened this issue Jan 6, 2024 · 2 comments
Closed

Constant deprecation in HA 2024.1 #130

elarsson1 opened this issue Jan 6, 2024 · 2 comments

Comments

@elarsson1
Copy link

Home Assistant 2024.1 has deprecated a number of constants and wants all integration to use replacement enums instead. Currently, this just results in log spam, but the constants will be removed completely in 2025.1.

Reference:

Sample log entries starting in 2024.1

HVAC_MODE_OFF was used from kumo, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACMode.OFF instead, please report it to the author of the 'kumo' custom integration
SUPPORT_FAN_MODE was used from kumo, this is a deprecated constant which will be removed in HA Core 2025.1. Use ClimateEntityFeature.FAN_MODE instead, please report it to the author of the 'kumo' custom integration
SUPPORT_SWING_MODE was used from kumo, this is a deprecated constant which will be removed in HA Core 2025.1. Use ClimateEntityFeature.SWING_MODE instead, please report it to the author of the 'kumo' custom integration
SUPPORT_TARGET_TEMPERATURE was used from kumo, 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 'kumo' custom integration
SUPPORT_TARGET_TEMPERATURE_RANGE was used from kumo, this is a deprecated constant which will be removed in HA Core 2025.1. Use ClimateEntityFeature.TARGET_TEMPERATURE_RANGE instead, please report it to the author of the 'kumo' custom integration
TEMP_CELSIUS was used from kumo, 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 'kumo' custom integration
Entity None (<class 'custom_components.kumo.climate.KumoThermostat'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <ClimateEntityFeature.TARGET_TEMPERATURE|FAN_MODE|SWING_MODE: 41>, please report it to the author of the 'kumo' custom integration and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation
Entity None (<class 'custom_components.kumo.climate.KumoThermostat'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <ClimateEntityFeature.TARGET_TEMPERATURE|FAN_MODE: 9>, please report it to the author of the 'kumo' custom integration and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation
@dlarrick
Copy link
Owner

dlarrick commented Jan 6, 2024

Thanks, will address at some point. I'd also accept a patch if someone would like to take this on.

@dlarrick
Copy link
Owner

dlarrick commented Mar 7, 2024

@dlarrick dlarrick closed this as completed Mar 7, 2024
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

No branches or pull requests

2 participants