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

Deprecated constants in Home Assistant 2024.1 #462

Closed
jamespreedy opened this issue Jan 4, 2024 · 1 comment
Closed

Deprecated constants in Home Assistant 2024.1 #462

jamespreedy opened this issue Jan 4, 2024 · 1 comment

Comments

@jamespreedy
Copy link

Logger: homeassistant.components.sensor
Source: helpers/deprecation.py:204
Integration: Sensor (documentation, issues)
First occurred: 7:57:45 am (6 occurrences)
Last logged: 7:57:46 am

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

See above logs - various constants used in the custom component will be depreciated in a future version of Home Assistant.
I appreciate this is something that everyone will see, but if I can help with any additional logs etc, please let me know - I'll be happy to help how I can.

@lhumb
Copy link

lhumb commented Jan 4, 2024

found some more deprecated elements


[homeassistant.components.sensor] 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
[homeassistant.components.sensor] 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
[homeassistant.components.sensor] 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
[homeassistant.components.sensor] 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
[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
[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
[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
[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
[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
[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
[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
[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
[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
[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

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

2 participants