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

SOURCE_TYPE_GPS is deprecated #26

Open
kovacsla opened this issue Jan 7, 2024 · 0 comments
Open

SOURCE_TYPE_GPS is deprecated #26

kovacsla opened this issue Jan 7, 2024 · 0 comments

Comments

@kovacsla
Copy link

kovacsla commented Jan 7, 2024

Home assistant shows warning message in the log (presumably since 2024.1.0):

2024-01-07 03:27:34.818 WARNING (MainThread) [homeassistant.components.device_tracker] SOURCE_TYPE_GPS was used from openhab, 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://github.com/kubawolanin/ha-openhab/issues

I'am not a develpper. I think the next two row change are fixing the problem.

file name: device_tracker.py

2 from homeassistant.components.device_tracker import SOURCE_TYPE_GPS
63 return SOURCE_TYPE_GPS

change to

2 from homeassistant.components.device_tracker import SourceType.GPS
63 SourceType.GPS

I think this modify only works after the HA 2025.1 update. Please, someone confirm me about this solution wheter it's working or not!

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

No branches or pull requests

1 participant