Skip to content

Introduce Mode enum #122

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

Merged
merged 3 commits into from
Feb 16, 2025
Merged

Conversation

robberwick
Copy link
Collaborator

This pull request includes changes to the blinkstick package to improve the handling of device modes by introducing a new Mode enum and updating the relevant methods and tests. The most important changes include adding the Mode enum, updating the set_mode method to accept the new enum, and adding tests to validate the new functionality.

Enhancements to device mode handling:

Testing improvements:

  • tests/clients/test_blinkstick.py: Added a parameterized test to ensure that the set_mode method raises an exception when an invalid mode is passed, and accepts valid modes including the new Mode enum values. [1] [2]

@robberwick robberwick merged commit 419c819 into arvydas:release/2.0-dev Feb 16, 2025
17 checks passed
@robberwick robberwick deleted the mode-enum branch February 16, 2025 13:51
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.

1 participant