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

HA 2024.1 deprecated constants replacement #112

Merged
merged 4 commits into from
Feb 11, 2024

Conversation

alexdelprete
Copy link
Collaborator

should solve #111

@alexdelprete
Copy link
Collaborator Author

It's tested and seems to be working fine: #111 (comment)

@Snuffy2
Copy link
Collaborator

Snuffy2 commented Jan 31, 2024

I tried this PR and it has resolved most of the deprecation warnings, thanks! I am still getting one more that you may be able to address.

2024-01-31 10:18:05.433 WARNING (MainThread) [homeassistant.components.device_tracker] SOURCE_TYPE_ROUTER was used from opnsense, this is a deprecated constant which will be removed in HA Core 2025.1. Use SourceType.ROUTER instead, please create a bug report at https://github.com/travisghansen/hass-opnsense/issues

It is in: /custom_components/opnsense/device_tracker.py

@alexdelprete alexdelprete changed the title Addresses Issue #111 (HA 2024.1 deprecated constants) HA 2024.1 deprecated constants replacement Jan 31, 2024
@alexdelprete
Copy link
Collaborator Author

alexdelprete commented Jan 31, 2024

It is in: /custom_components/opnsense/device_tracker.py

Thanks, I updated the PR now. Please let me know if there's anything else that slipped my checks. :)

@travisghansen travisghansen merged commit ba8651a into travisghansen:main Feb 11, 2024
2 checks passed
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.

3 participants