Skip to content
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

Migrate to new const data types #118

Merged
merged 1 commit into from
May 13, 2024
Merged

Conversation

andreasbrett
Copy link
Contributor

As of HA Core 2025.1 following consts will deprecate:

  • SOURCE_TYPE_GPS
  • LENGTH_KILOMETERS
  • LENGTH_METERS
  • SPEED_KILOMETERS_PER_HOUR

see HA logs:

2024-03-06 08:19:38.275 WARNING (MainThread) [homeassistant.components.device_tracker] SOURCE_TYPE_GPS was used from biketrax, this is a deprecated constant which will be removed in HA Core 2025.1. Use SourceType.GPS instead, please create a bug report at https://www.github.com/basilfx/homeassistant-biketrax/issues
2024-03-06 08:19:38.348 WARNING (MainThread) [homeassistant.components.device_tracker] SOURCE_TYPE_GPS was used from biketrax, this is a deprecated constant which will be removed in HA Core 2025.1. Use SourceType.GPS instead, please create a bug report at https://www.github.com/basilfx/homeassistant-biketrax/issues
2024-03-06 08:19:38.510 WARNING (MainThread) [homeassistant.const] LENGTH_KILOMETERS was used from biketrax, 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://www.github.com/basilfx/homeassistant-biketrax/issues
2024-03-06 08:19:38.571 WARNING (MainThread) [homeassistant.const] LENGTH_METERS was used from biketrax, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfLength.METERS instead, please create a bug report at https://www.github.com/basilfx/homeassistant-biketrax/issues
2024-03-06 08:19:38.663 WARNING (MainThread) [homeassistant.const] SPEED_KILOMETERS_PER_HOUR was used from biketrax, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfSpeed.KILOMETERS_PER_HOUR instead, please create a bug report at https://www.github.com/basilfx/homeassistant-biketrax/issues

@basilfx basilfx merged commit 4ea16c2 into basilfx:master May 13, 2024
2 checks passed
@basilfx
Copy link
Owner

basilfx commented May 13, 2024

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants