mbillow / ha-chargepoint

Home Assistant ChargePoint EV Charger Integration
MIT License
47 stars 6 forks source link

Use of deprecated constants LENGTH_KILOMETERS, LENGTH_MILES, PRESSURE_PSI, TIME_SECONDS #36

Closed bdurrett closed 7 months ago

bdurrett commented 9 months ago

Creating an issue as instructed from the logging messages:

Logger: homeassistant.const Source: helpers/deprecation.py:205 First occurred: 12:33:14 PM (21 occurrences) Last logged: 12:34:40 PM

LENGTH_KILOMETERS was used from chargepoint, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfLength.KILOMETERS instead, please create a bug report at https://github.com/mbillow/ha-chargepoint/issues LENGTH_MILES was used from chargepoint, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfLength.MILES instead, please create a bug report at https://github.com/mbillow/ha-chargepoint/issues PRESSURE_PSI was used from chargepoint, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfPressure.PSI instead, please create a bug report at https://github.com/mbillow/ha-chargepoint/issues TIME_SECONDS was used from chargepoint, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTime.SECONDS instead, please create a bug report at https://github.com/mbillow/ha-chargepoint/issues