simbaja / ha_gehome

GE Home Appliances (SmartHQ) for Home Assistant

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiple deprecated constants which will be removed in HA Core 2025.1

JasonMeudt opened this issue · comments

Multiple deprecated constants used in GE Home will be removed in forthcoming HA versions.

See below:

Logger: homeassistant.const
Source: helpers/deprecation.py:205
First occurred: 9:04:03 AM (26 occurrences)
Last logged: 9:04:03 AM

DEVICE_CLASS_HUMIDITY was used from ge_home, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.HUMIDITY instead, please report it to the author of the 'ge_home' custom integration
TEMP_FAHRENHEIT was used from ge_home, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.FAHRENHEIT instead, please report it to the author of the 'ge_home' custom integration
TEMP_CELSIUS was used from ge_home, 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 'ge_home' custom integration
DEVICE_CLASS_POWER_FACTOR was used from ge_home, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.POWER_FACTOR instead, please report it to the author of the 'ge_home' custom integration
DEVICE_CLASS_TEMPERATURE was used from ge_home, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.TEMPERATURE instead, please report it to the author of the 'ge_home' custom integration

I have the same warnings, but my logs show more constants to update

DEVICE_CLASS_BATTERY > SensorDeviceClass.BATTERY
DEVICE_CLASS_ENERGY > SensorDeviceClass.ENERGY
DEVICE_CLASS_HUMIDITY > SensorDeviceClass.HUMIDITY
DEVICE_CLASS_POWER > SensorDeviceClass.POWER
DEVICE_CLASS_POWER_FACTOR > SensorDeviceClass.POWER_FACTOR
DEVICE_CLASS_PROBLEM > BinarySensorDeviceClass.PROBLEM
DEVICE_CLASS_TEMPERATURE > SensorDeviceClass.TEMPERATURE
HVAC_MODE_AUTO > HVACMode.AUTO
HVAC_MODE_COOL > HVACMode.COOL
HVAC_MODE_DRY > HVACMode.DRY
HVAC_MODE_FAN_ONLY > HVACMode.FAN_ONLY
HVAC_MODE_HEAT > HVACMode.HEAT
HVAC_MODE_OFF > HVACMode.OFF
SUPPORT_FAN_MODE > ClimateEntityFeature.FAN_MODE
SUPPORT_OPERATION_MODE > WaterHeaterEntityFeature.OPERATION_MODE
SUPPORT_TARGET_TEMPERATURE > ClimateEntityFeature.TARGET_TEMPERATURE
SUPPORT_TARGET_TEMPERATURE > WaterHeaterEntityFeature.TARGET_TEMPERATURE
TEMP_CELSIUS > UnitOfTemperature.CELSIUS
TEMP_FAHRENHEIT > UnitOfTemperature.FAHRENHEIT

Should be resolved as of 0.6.10-dev0 (most of it is in 0.6.9, but missed a couple there). Closing for now, but let me know if you see anything else that needs to be changed.