Skip to content

Introduce Mode enum#122

Merged
robberwick merged 3 commits intoarvydas:release/2.0-devfrom
robberwick:mode-enum
Feb 16, 2025
Merged

Introduce Mode enum#122
robberwick merged 3 commits intoarvydas:release/2.0-devfrom
robberwick:mode-enum

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