mbillow / ha-chargepoint

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

Migrate deprecate constant, remove unused constants. #37

Closed conorbranagan closed 4 months ago

conorbranagan commented 5 months ago

Resolves the logs:

2024-01-12 16:44:05.284 WARNING (MainThread) [homeassistant.const] 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
2024-01-12 16:44:05.294 WARNING (MainThread) [homeassistant.const] 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
2024-01-12 16:44:05.304 WARNING (MainThread) [homeassistant.const] 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
2024-01-12 16:44:05.313 WARNING (MainThread) [homeassistant.const] 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

Fixes #36

mbillow commented 4 months ago

We should likely bump version in manifest.json to whatever version they introduced this new UnitOfTime object.

https://developers.home-assistant.io/docs/creating_integration_manifest/#version