mykhailog / hacs_waveshare_ups_hat

Waveshare UPS Hat integration for Home Assistant.
MIT License
19 stars 9 forks source link

DEVICE_CLASS_BATTERY is a deprecated constant #17

Open shutema opened 10 months ago

shutema commented 10 months ago

Hi I am getting the following in my logs:

DEVICE_CLASS_BATTERY was used from waveshare_ups_hat, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.BATTERY instead, please create a bug report at https://github.com/mykhailog/hacs_waveshare_ups_hat/issues

fraserp commented 10 months ago

Note this is also true for DEVICE_CLASS_POWER:

Logger: homeassistant.const
Source: helpers/deprecation.py:205
First occurred: 13:38:45 (2 occurrences)
Last logged: 13:38:45

DEVICE_CLASS_POWER was used from waveshare_ups_hat, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.POWER instead, please create a bug report at https://github.com/mykhailog/hacs_waveshare_ups_hat/issues
DEVICE_CLASS_BATTERY was used from waveshare_ups_hat, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.BATTERY instead, please create a bug report at https://github.com/mykhailog/hacs_waveshare_ups_hat/issues
erdalharput commented 1 month ago

Any plans for an update to address this issue?