homeassistant-goecharger icon indicating copy to clipboard operation
homeassistant-goecharger copied to clipboard

More Deprecated Constants

Open eikowagenknecht opened this issue 1 year ago • 2 comments

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.

eikowagenknecht avatar Jan 31 '24 14:01 eikowagenknecht

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

GeoBau avatar Apr 04 '24 21:04 GeoBau

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

JHPWBN avatar Apr 24 '24 07:04 JHPWBN