dlarrick / hass-kumo

Home Assistant module interfacing with Mitsubishi mini-split units
MIT License
99 stars 23 forks source link

Constant deprecation in HA 2024.1 #130

Closed elarsson1 closed 8 months ago

elarsson1 commented 10 months ago

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

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

dlarrick commented 8 months ago

This was fixed in https://github.com/dlarrick/hass-kumo/releases/tag/v0.3.10