garbled1 / homeassistant_ecowitt

Ecowitt Weather Station integration for homeassistant
Apache License 2.0
142 stars 70 forks source link

DEVICE_CLASS_HUMIDITY was used from ecowitt, this is a deprecated constant which will be removed in HA Core 2025.1 #168

Open vix66 opened 3 months ago

vix66 commented 3 months ago

Many classes will be deprecated in version 2025. What should we do?

akeck commented 1 week ago

Exactly what the log message suggests:

Logger: homeassistant.const Source: helpers/deprecation.py:197 First occurred: 1:42:59 PM (27 occurrences) Last logged: 1:43:18 PM

DEVICE_CLASS_PRESSURE was used from ecowitt, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.PRESSURE instead, please report it to the author of the 'ecowitt' custom integration DEVICE_CLASS_TIMESTAMP was used from ecowitt, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.TIMESTAMP instead, please report it to the author of the 'ecowitt' custom integration DEVICE_CLASS_VOLTAGE was used from ecowitt, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.VOLTAGE instead, please report it to the author of the 'ecowitt' custom integration ELECTRIC_POTENTIAL_VOLT was used from ecowitt, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfElectricPotential.VOLT instead, please report it to the author of the 'ecowitt' custom integration DEVICE_CLASS_BATTERY was used from ecowitt, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.BATTERY instead, please report it to the author of the 'ecowitt' custom integration