-
Notifications
You must be signed in to change notification settings - Fork 35
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
depreciated constants HA Core 2025.1 #96
Comments
Logger: homeassistant.components.sensor STATE_CLASS_TOTAL_INCREASING was used from sems, 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/TimSoethout/goodwe-sems-home-assistant/issues |
Hallo, +1 here, Logger: homeassistant.const POWER_WATT was used from sems, 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/TimSoethout/goodwe-sems-home-assistant/issues I hope we will be able still to use this integration after Jan-2025 |
As a hint for code changes: The sensors are defined in sensor.py from homeassistant.components.sensor import STATE_CLASS_TOTAL_INCREASING, SensorEntity and valid values are listed here (where warnings for version 2025.1 are mentioned): https://github.com/home-assistant/core/blob/dev/homeassistant/const.py ... Power units WATT = "W" |
Fixed by #102 |
Logger: homeassistant.const
Source: helpers/deprecation.py:205
First occurred: 13:48:09 (4 occurrences)
Last logged: 13:48:09
DEVICE_CLASS_POWER was used from sems, 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/TimSoethout/goodwe-sems-home-assistant/issues
POWER_WATT was used from sems, 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/TimSoethout/goodwe-sems-home-assistant/issues
DEVICE_CLASS_ENERGY was used from sems, 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/TimSoethout/goodwe-sems-home-assistant/issues
ENERGY_KILO_WATT_HOUR was used from sems, 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/TimSoethout/goodwe-sems-home-assistant/issues
The text was updated successfully, but these errors were encountered: