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

Warnings for used SensorDeviceClasses.... which will be removed in HA Core 2025.1 #474

Closed
Matze-aaa opened this issue Feb 3, 2024 · 4 comments

Comments

@Matze-aaa
Copy link

2024-02-03 21:36:27.793 WARNING (MainThread) [homeassistant.const] DEVICE_CLASS_BATTERY was used from myenergi, 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/cjne/ha-myenergi/issues
2024-02-03 21:36:27.803 WARNING (MainThread) [homeassistant.const] DEVICE_CLASS_ENERGY was used from myenergi, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.ENERGY instead, please create a bug report at https://github.com/cjne/ha-myenergi/issues
2024-02-03 21:36:27.813 WARNING (MainThread) [homeassistant.const] DEVICE_CLASS_POWER was used from myenergi, 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/cjne/ha-myenergi/issues
2024-02-03 21:36:27.823 WARNING (MainThread) [homeassistant.const] DEVICE_CLASS_TEMPERATURE was used from myenergi, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.TEMPERATURE instead, please create a bug report at https://github.com/cjne/ha-myenergi/issues
2024-02-03 21:36:27.833 WARNING (MainThread) [homeassistant.const] DEVICE_CLASS_VOLTAGE was used from myenergi, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.VOLTAGE instead, please create a bug report at https://github.com/cjne/ha-myenergi/issues
2024-02-03 21:36:27.843 WARNING (MainThread) [homeassistant.const] ELECTRIC_POTENTIAL_VOLT was used from myenergi, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfElectricPotential.VOLT instead, please create a bug report at https://github.com/cjne/ha-myenergi/issues
2024-02-03 21:36:27.853 WARNING (MainThread) [homeassistant.const] ENERGY_KILO_WATT_HOUR was used from myenergi, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfEnergy.KILO_WATT_HOUR instead, please create a bug report at https://github.com/cjne/ha-myenergi/issues
2024-02-03 21:36:27.863 WARNING (MainThread) [homeassistant.const] FREQUENCY_HERTZ was used from myenergi, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfFrequency.HERTZ instead, please create a bug report at https://github.com/cjne/ha-myenergi/issues
2024-02-03 21:36:27.873 WARNING (MainThread) [homeassistant.const] POWER_WATT was used from myenergi, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfPower.WATT instead, please create a bug report at https://github.com/cjne/ha-myenergi/issues
2024-02-03 21:36:27.882 WARNING (MainThread) [homeassistant.const] TEMP_CELSIUS was used from myenergi, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.CELSIUS instead, please create a bug report at https://github.com/cjne/ha-myenergi/issues

@Matze-aaa
Copy link
Author

sorry, didn't see that it was already posted here #462

@ITHungry
Copy link

Good morning,
I'm seeing the below warnings:

Logger: homeassistant.components.sensor
Source: helpers/deprecation.py:205
Integration: Sensor (documentation, issues)
First occurred: 06:17:22 (4 occurrences)
Last logged: 06:17:23

STATE_CLASS_MEASUREMENT was used from myenergi, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorStateClass.MEASUREMENT instead, please create a bug report at https://github.com/cjne/ha-myenergi/issues
STATE_CLASS_TOTAL_INCREASING was used from myenergi, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorStateClass.TOTAL_INCREASING instead, please create a bug report at https://github.com/cjne/ha-myenergi/issues

I'm running:

Home Assistant Yellow:
image

@jwillemsen
Copy link
Contributor

Should be fixed with latest release

@CJNE
Copy link
Owner

CJNE commented Mar 13, 2024

This should be fixed by now 👍

@CJNE CJNE closed this as completed Mar 13, 2024
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

4 participants