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

Use deprecated wifi method in case WifiInfo is null #3970

Merged

Conversation

dshokouhi
Copy link
Member

Summary

Fixes: #3969 by defaulting to the old deprecated method in case WifiInfo returns as null. The 4 sensors mentioned use the new method but Wifi SSID and BSSID use the old method which in this case still works.

Screenshots

Link to pull request in Documentation repository

Documentation: home-assistant/companion.home-assistant#

Any other notes

@jpelgrom
Copy link
Member

Really odd that there is a difference. Maybe add a short comment that this is a workaround for device-specific issues, as connectionInfo from the WifiManager can still be null?

@dshokouhi
Copy link
Member Author

Maybe add a short comment that this is a workaround for device-specific issues, as connectionInfo from the WifiManager can still be null?

added in latest commit.

Also have received confirmation from a user that the fix is working: #3969 (comment)

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

Successfully merging this pull request may close these issues.

4 WiFi sensors broken on Android 11 (OnePlus 8T, OxygenOS) since 2023.7.8
3 participants