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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle zeroconf updated events #47683
Conversation
Will test soon. I think this will be fine since we pre-filter update_record |
Well I was wrong about that, it looks like it will generate multiple orders of magnitude more updates. I'll see if I can optimize it a bit when I have more time later tonight |
What services do you see that are doing updates? Can you see the values that have been updated? Maybe we should just filter it out unless we see an IP change |
Its mostly Testing on another network now.... Might be due to running an old version of homebridge (https://www.npmjs.com/package/bonjour-hap)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The increase should be minimal as long as they aren't running and old version of homebridge https://www.npmjs.com/package/bonjour-hap which is a known issue with that library (https://www.npmjs.com/package/bonjour-hap): The library heavily congest the network with unnecessary traffic
That's not home assistant's fault so I don't think its something we need to accomodate, and has already been fixed in newer versions.
Breaking change
Proposed change
I had a case where my Elgato keylight air was unable to get an IP through DHCP so assigned itself a manual IP and started broadcasting that in Zeroconf. This updated my config entry. Afterwards it was able to recover and get an IP and updated it's discovery data. This update was ignored and my keylight did not turn on during my call this morning 馃槶
I had this code running for a while and didn't see excessive updates coming in. Pining @bdraco as his network is wild and maybe he can see more updates coming in.
The filter code was initially added to prevent calling it multiple times, but this is better deduplicated by a config flow.
Type of change
Example entry for
configuration.yaml
:# Example configuration.yaml
Additional information
Checklist
black --fast homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
..coveragerc
.The integration reached or maintains the following Integration Quality Scale:
To help with the load of incoming pull requests: