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 OSRAM Switch Mini big arrow long press #979

Merged
merged 1 commit into from
Aug 25, 2021

Conversation

RenWal
Copy link
Contributor

@RenWal RenWal commented Jul 27, 2021

This quirk was originally created based on the event trace in https://gist.github.com/majkrzak/333417ea2d7e59f149c51e8016d10962 in #409. The trace shows that holding down the big arrow sends a "move_with_on_off" (COMMAND_MOVE_ON_OFF) event. However, this quirk incorrectly binds the COMMAND_STEP_ON_OFF event instead. This caused long presses on the big arrow to be ignored.

This PR puts the correct event in place.

Replaces COMMAND_STEP_ON_OFF with COMMAND_MOVE_ON_OFF for the big arrow key, as stated in https://gist.github.com/majkrzak/333417ea2d7e59f149c51e8016d10962
@coveralls
Copy link

Pull Request Test Coverage Report for Build 1071110049

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 82.555%

Totals Coverage Status
Change from base Build 1065257715: 0.0%
Covered Lines: 3961
Relevant Lines: 4798

💛 - Coveralls

@dmulcahey dmulcahey merged commit 09bdfac into zigpy:dev Aug 25, 2021
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