-
-
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: break
the loop when connected
#244
Conversation
WalkthroughThe recent changes to 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 Configuration File (
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #244 +/- ##
==========================================
- Coverage 34.24% 34.23% -0.01%
==========================================
Files 81 81
Lines 7164 7165 +1
==========================================
Hits 2453 2453
- Misses 4711 4712 +1 ☔ 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: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- midealocal/device.py (1 hunks)
Additional comments not posted (1)
midealocal/device.py (1)
215-215
: LGTM! Thebreak
statement is a logical improvement.The addition of the
break
statement ensures that the loop terminates immediately upon a successful connection, avoiding unnecessary iterations and redundant connection attempts.
🤖 I have created a release *beep* *boop* --- ## [2.5.0](v2.4.0...v2.5.0) (2024-07-30) ### Features * **40:** add `precision_halves` customization ([#248](#248)) ([8f5ec79](8f5ec79)) * **b8:** first implementation ([#225](#225)) ([259e4f2](259e4f2)) ### Bug Fixes * `break` the loop when connected ([#244](#244)) ([536f975](536f975)) * **ac:** correct attributes based on msg type ([#251](#251)) ([fada9bc](fada9bc)) * **cloud:** fix email obfuscation ([#245](#245)) ([ad9f278](ad9f278)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Summary by CodeRabbit