-
Notifications
You must be signed in to change notification settings - Fork 57
fix: switches commands were incorrect #591
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
Conversation
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.
Pull Request Overview
This PR fixes the command structures for timer settings in Roborock devices, specifically addressing how the enable() and disable() methods interact with the device API. The changes correct the parameter format and use appropriate commands for disabling timers.
- Changed
enable()methods to send parameters as a list of timer values instead of a dictionary - Updated
disable()methods to use dedicatedCLOSE_*_TIMERcommands instead of attempting to disable viaSET_*_TIMER
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| roborock/devices/traits/v1/valley_electricity_timer.py | Updated enable() to send timer values as a list; changed disable() to use CLOSE_VALLEY_ELECTRICITY_TIMER command |
| roborock/devices/traits/v1/do_not_disturb.py | Updated enable() to send timer values as a list; changed disable() to use CLOSE_DND_TIMER command |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
| export default { | ||
| extends: ["@commitlint/config-conventional"], | ||
| ignores: [(msg) => /Signed-off-by: dependabot\[bot]/m.test(msg)], | ||
| ignores: [ |
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.
unrelated change, but i think worthwhile
The structure for the timers was incorrect, this is now working in my tests