cathiele / homeassistant-goecharger

Home Assistant custom_component for controlling the go-eCharger EV-Charger
MIT License
89 stars 29 forks source link

More Deprecated Constants #93

Open eikowagenknecht opened 7 months ago

eikowagenknecht commented 7 months ago

Describe the bug It seems like in https://github.com/cathiele/homeassistant-goecharger/pull/87 some were already fixed, but using 0.25.3 there are still error messages:

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

TEMP_CELSIUS was used from goecharger, 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/cathiele/homeassistant-goecharger/issues
ENERGY_KILO_WATT_HOUR was used from goecharger, 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/cathiele/homeassistant-goecharger/issues
Logger: homeassistant.components.sensor
Source: helpers/deprecation.py:205
Integration: Sensor (documentation, issues)
First occurred: 15:28:45 (2 occurrences)
Last logged: 15:28:45

STATE_CLASS_TOTAL_INCREASING was used from goecharger, 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/cathiele/homeassistant-goecharger/issues

Additional context Needs to be fixed this year.

GeoBau commented 5 months ago

ENERGY_KILO_WATT_HOUR was used from goecharger, 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/cathiele/homeassistant-goecharger/issues

JHPWBN commented 4 months ago

Same here, @cathiele I hope you will fix this before it is too late? Logger: homeassistant.components.sensor Source: helpers/deprecation.py:206 integration: Sensor (documentation, issues) First occurred: 08:52:37 (2 occurrences) Last logged: 08:52:37

STATE_CLASS_TOTAL_INCREASING was used from goecharger, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorStateClass.TOTAL_INCREASING instead, please report it to the author of the 'goecharger' custom integration