Skip to content

Conversation

@Lash-L
Copy link
Collaborator

@Lash-L Lash-L commented Nov 14, 2025

The structure for the timers was incorrect, this is now working in my tests

Copy link
Contributor

Copilot AI left a 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 dedicated CLOSE_*_TIMER commands instead of attempting to disable via SET_*_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.

export default {
extends: ["@commitlint/config-conventional"],
ignores: [(msg) => /Signed-off-by: dependabot\[bot]/m.test(msg)],
ignores: [
Copy link
Collaborator Author

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

@Lash-L Lash-L merged commit 40aa6b6 into main Nov 14, 2025
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants