-
-
Notifications
You must be signed in to change notification settings - Fork 429
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
[discovery.mdns] Devices may apply a grace period for removal from the Inbox #2635
Conversation
Signed-off-by: Andrew Fiddian-Green <[email protected]>
Signed-off-by: Andrew Fiddian-Green <[email protected]>
Resolves #1835 in general. |
^ |
AFAIK the keyword “Resolves” (or “Fixes”, “Solves” etc.) followed by the issue number should indeed cause Git to auto close the issue. |
Yes, if you write it like "Fixes #1835" in the PR description, it will be linked correctly. |
...mdns/src/main/java/org/openhab/core/config/discovery/mdns/internal/MDNSDiscoveryService.java
Outdated
Show resolved
Hide resolved
...mdns/src/main/java/org/openhab/core/config/discovery/mdns/internal/MDNSDiscoveryService.java
Outdated
Show resolved
Hide resolved
...mdns/src/main/java/org/openhab/core/config/discovery/mdns/internal/MDNSDiscoveryService.java
Outdated
Show resolved
Hide resolved
...mdns/src/main/java/org/openhab/core/config/discovery/mdns/internal/MDNSDiscoveryService.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Andrew Fiddian-Green <[email protected]>
...mdns/src/main/java/org/openhab/core/config/discovery/mdns/internal/MDNSDiscoveryService.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Andrew Fiddian-Green <[email protected]>
I have tested this PR in combination with openhab/openhab-addons#11834 and it works as expected - no more constant removal and readding of the Miele XGW 3000 gateway. From code perspective it also looks fine to me. Thanks again for this fix @andrewfg. Now will leave it to core maintainers to review. |
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.
lgtm, thanks!
I am afraid we missed one place in the manual scan where we have to cancel the removal task. Lines 152 to 172 in 670c64b
I will provide a follow-up PR with a fix and some minor code refactoring. |
Ok. Thanks. |
See #2647 |
…e Inbox (openhab#2635) Signed-off-by: Andrew Fiddian-Green <[email protected]> GitOrigin-RevId: 459dac9
BACKGROUND
Some types of OpenHAB bindings have devices that can sometimes be a bit late in sending their mDNS renewal announcements, which means that such devices are repeatedly removed from, and (re)added to, the InBox. This leads to confusion in the UI, and repeated logger messages. This is an exact analog to the UPNP Discovery issue that was solved by #2144
SOLUTION
The solution is an exact analog to the solution in #2144
Resolves #1835
DOCUMENTATION
The binding developer guide will also be updated via this PR openhab/openhab-docs#1708
Signed-off-by: Andrew Fiddian-Green [email protected]