-
-
Notifications
You must be signed in to change notification settings - Fork 87
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
Rework zeroconf for unicast scanning #2083
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #2083 +/- ##
==========================================
- Coverage 88.61% 88.50% -0.12%
==========================================
Files 163 163
Lines 10991 11001 +10
==========================================
- Hits 9740 9736 -4
- Misses 1251 1265 +14
☔ View full report in Codecov by Sentry. |
I'm pretty sure this will solve home-assistant/core#80215 and it doesn't regress any of my production set ups. It would be nice to get a test from someone else though |
Since this path is used for HA we could do a release, and bump HA at the top of the month to get a long feedback period |
Just let me know when you are satisfied here and want this merged. I can probably make a release if needed. |
I think the code is fine. I'm internally debating if a test that patches to the code to make sure we do the correct zeroconf calls makes sense or if there is a better way to do it. I think patching is probably the only realistic option since otherwise we end up with an unreliable test that needs specific network conditions |
even with checking the cache first, there are still too many requests (this is an existing problem) |
fixed that issue. will look at the tests a bit more later |
I suggest patching for tests as well. That's easier and more reliable. |
Happy with the performance now. Will bump the zeroconf version and add the tests |
@postlund should be good to go now. |
@bdraco Great! Heading to bed now, but I'll look it over tomorrow and make a new release for you. |
perfect. thanks! |
I've tested this on both my large production setups without issues with many airplay, home pods, and apple tv devices. I think it will solve home-assistant/core#80215
It would be great if someone with an older apple tv could test this.
needs python-zeroconf/python-zeroconf#1192needs home-assistant/core#95714fixes home-assistant/core#80215