-
Notifications
You must be signed in to change notification settings - Fork 8
More improvements #843
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
More improvements #843
Conversation
WalkthroughRefactors group/member collection and thermostat/location helpers, reorders entity update logic, moves appliance offset helper between modules, and improves error messages to include original exception details; also updates test fixture data with two new thermostat group entries. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Client
participant SmileAPI as Smile API
participant DataModule as data.py
participant Gateway
participant Adam
participant Anna
participant DB as EntitiesStore
Note over Client,SmileAPI: Trigger: async_update / get_all_gateway_entities
Client->>SmileAPI: request update
SmileAPI->>Gateway: fetch XML / appliance list
Gateway-->>SmileAPI: XML data
SmileAPI->>SmileAPI: _get_appliances_with_offset_functionality() %%#00A1D6 light blue
SmileAPI->>DataModule: provide appliances + offset-capable list
DataModule->>Adam: process Adam-specific data
Adam-->>DataModule: Adam results
DataModule->>DataModule: update switching-group status
DataModule->>Anna: process Anna data
Anna-->>DataModule: Anna results
DataModule->>DataModule: deferred OpenTherm / smartmeter availability checks
DataModule->>DB: write/update entities (groups, notifications, availability)
DB-->>Client: consolidated update result
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Organization 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 #843 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 21 21
Lines 3435 3443 +8
=========================================
+ Hits 3435 3443 +8 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|



Summary by CodeRabbit
Bug Fixes
Tests
Documentation
✏️ Tip: You can customize this high-level summary in your review settings.