-
-
Notifications
You must be signed in to change notification settings - Fork 8
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(ac): correct attributes based on msg type #251
Conversation
This reverts commit 75fbd8e
WalkthroughThe recent changes to the Changes
Assessment against linked issues
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 #251 +/- ##
==========================================
- Coverage 35.34% 35.33% -0.01%
==========================================
Files 81 81
Lines 7184 7186 +2
==========================================
Hits 2539 2539
- Misses 4645 4647 +2 ☔ 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/devices/ac/init.py (4 hunks)
Additional comments not posted (3)
midealocal/devices/ac/__init__.py (3)
288-292
: Ensure proper type hinting.The type hinting for the
message
variable is correct and enhances code readability.
Line range hint
362-375
:
Conditional attribute setting is well-implemented.The conditional check ensures that certain attributes are only set if the
message
is not of typeMessageSubProtocolSet
.
400-405
: Enhanced message handling inset_swing
.The changes ensure that the correct attributes are modified based on the specific message type being processed.
test passed |
🤖 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).
This reverts commit 75fbd8e
Fix #249
@linkser Can you help with a test?
Summary by CodeRabbit
New Features
Bug Fixes