Skip to content
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 error when disabling fan timer #88

Merged
merged 1 commit into from
Jan 3, 2022

Conversation

lrb2
Copy link
Contributor

@lrb2 lrb2 commented Dec 28, 2021

When using the dyson_local.set_timer service to disable a fan's timer by providing timer: 0, the timer would be disabled but still produce the error from issue #26. This is because the set_sleep_timer function was still being called with a value of 0 (producing the error) after the timer was already disabled using the disable_sleep_timer function. Moving set_sleep_timer under an else fixes the issue by preventing set_sleep_timer from being called if disable_sleep_timer was called.

@Kakise Kakise merged commit 72bd14d into shenxn:main Jan 3, 2022
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.

2 participants