-
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
Core-next adherence #733
Core-next adherence #733
Conversation
Warning Rate limit exceeded@bouwew has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 11 minutes and 24 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. WalkthroughThis pull request includes modifications to the Changes
Assessment against linked issues
Possibly related issues
Possibly related PRs
Suggested labels
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 using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Not sure why markdownlint was problematic, might need to revert the disabling ... but lets wait for next core release |
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
🧹 Outside diff range and nitpick comments (1)
custom_components/plugwise/climate.py (1)
Line range hint
1-324
: Summary: Changes align with PR objectivesThe modifications in this file, particularly the update to the
async_set_hvac_mode
method signature, contribute to improved type safety and align well with the PR objective of ensuring compatibility with the upcoming version of Home Assistant. These changes are part of addressing the compatibility issues mentioned in issue #730.To further ensure the PR meets its objectives:
- Verify that similar type annotation updates have been made in other relevant files within the Plugwise integration.
- Consider adding or updating unit tests to cover the modified
async_set_hvac_mode
method, ensuring it handlesHVACMode
correctly.- Update the integration's documentation if there are any changes in usage or behavior resulting from these modifications.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (3)
- .pre-commit-config.yaml (1 hunks)
- custom_components/plugwise/climate.py (2 hunks)
- custom_components/plugwise/select.py (1 hunks)
✅ Files skipped from review due to trivial changes (2)
- .pre-commit-config.yaml
- custom_components/plugwise/select.py
🔇 Additional comments (2)
custom_components/plugwise/climate.py (2)
13-13
: LGTM: Import reorganization.The relocation of the
ClimateEntity
import improves code organization without affecting functionality.
279-279
: Approve type annotation change and verify impact.The update to use
HVACMode
instead ofstr
for thehvac_mode
parameter enforces stricter type checking, which is a good practice. This change aligns with the PR objective of ensuring compatibility with the upcoming version of Home Assistant.To ensure this change doesn't break existing functionality, please run the following script to check for any occurrences where
async_set_hvac_mode
is called with a string argument:If any occurrences are found, they should be updated to use
HVACMode
instead of a string.
@CoMPaTech Why is markdownlinting disabled? |
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!
Irrational behavior both locally and CI - seems some issue with NPM - hence still drafted |
Quality Gate passedIssues Measures |
Fixes #730
Summary by CodeRabbit
Bug Fixes
Improvements
async_select_option
method.