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

DEVICE_CLASS_BATTERY is a deprecated constant #17

Open
shutema opened this issue Jan 20, 2024 · 2 comments
Open

DEVICE_CLASS_BATTERY is a deprecated constant #17

shutema opened this issue Jan 20, 2024 · 2 comments

Comments

@shutema
Copy link

shutema commented Jan 20, 2024

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
Copy link

fraserp commented Jan 24, 2024

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
Copy link

Any plans for an update to address this issue?

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

3 participants