-
Notifications
You must be signed in to change notification settings - Fork 2
Fix auto-joining not functioning as intended #348
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
Conversation
WalkthroughDecouples node registration from registry updates and discovery callbacks in register_node. The function now only sends NodeAddRequest and handles errors. Updates CHANGELOG Ongoing section by splitting an entry into separate bullets for PRs 344 and 348. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Caller
participant Registry
participant Plugwise as PlugwiseNetwork
rect rgb(240,248,255)
note right of Caller: Previous flow (before)
Caller->>Registry: register_node(mac)
Registry->>Plugwise: NodeAddRequest(mac)
Plugwise-->>Registry: Success/Failure
alt Success
Registry->>Registry: Add mac to _registry
Registry->>Caller: _exec_node_discover_callback(mac)
else Failure
Registry-->>Caller: Error/exception
end
end
rect rgb(245,255,245)
note right of Caller: New flow (now)
Caller->>Registry: register_node(mac)
Registry->>Plugwise: NodeAddRequest(mac)
Plugwise-->>Registry: Success/Failure
alt Success
note over Registry: No registry update<br/>No discovery callback
Registry-->>Caller: Return success
else Failure
Registry-->>Caller: Error/exception
end
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #348 +/- ##
==========================================
+ Coverage 81.67% 81.78% +0.10%
==========================================
Files 36 36
Lines 8142 8140 -2
==========================================
+ Hits 6650 6657 +7
+ Misses 1492 1483 -9 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
02129cd to
13defa7
Compare
|



Summary by CodeRabbit
Refactor
Documentation