-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
fix(capabilities): make capabilities optional #217
Conversation
Warning Rate limit exceeded@rokam has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 9 minutes and 8 seconds before requesting another review. How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. WalkthroughThe recent updates streamline the device capability query process in the Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #217 +/- ##
==========================================
- Coverage 33.10% 32.83% -0.27%
==========================================
Files 80 80
Lines 7009 6981 -28
==========================================
- Hits 2320 2292 -28
Misses 4689 4689 ☔ View full report in Codecov by Sentry. |
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.
Actionable comments posted: 1
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- midealocal/device.py (2 hunks)
- tests/device_test.py (2 hunks)
Files skipped from review due to trivial changes (1)
- tests/device_test.py
Additional comments not posted (2)
midealocal/device.py (2)
221-221
: LGTM! But verify the impact of changes on exception handling.The code changes are approved.
However, ensure that the removal of error handling for
CapabilitiesFailed
does not negatively impact other parts of the codebase.
295-299
: LGTM! But verify the impact of changes on functionality.The code changes are approved.
However, ensure that the simplification of
get_capabilities
does not negatively impact the overall functionality.
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- midealocal/device.py (4 hunks)
Files skipped from review as they are similar to previous changes (1)
- midealocal/device.py
d197445
to
24b2314
Compare
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- midealocal/device.py (4 hunks)
Files skipped from review as they are similar to previous changes (1)
- midealocal/device.py
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- tests/device_test.py (3 hunks)
Files skipped from review as they are similar to previous changes (1)
- tests/device_test.py
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 !
🤖 I have created a release *beep* *boop* --- ## [1.3.2](v1.3.1...v1.3.2) (2024-07-11) ### Bug Fixes * **capabilities:** make capabilities optional ([#217](#217)) ([c269e71](c269e71)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Resolved an issue with optional capabilities to improve stability. - **Chores** - Updated the version number to 1.3.2. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
With this change, if capabilities fail, no exception is thrown. So AC devices that doesn't support capabilities will remain working.
Summary by CodeRabbit
New Features
Refactor
get_capabilities
method to focus on sending commands.Tests