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 active arg parsing #79

Merged
merged 1 commit into from
Mar 25, 2024
Merged

Fix active arg parsing #79

merged 1 commit into from
Mar 25, 2024

Conversation

romainrichard
Copy link
Contributor

arg is the string with the value passed for the active effect. Calling bool() on a non-empty string always returns True. As a result calling razer-cli -e active,0 sets the device as active instead of inactive.
This commit fixes that by converting the arg to an integer before calling bool() on it.

arg is the string with the value passed for the active effect. Calling bool() on a non-empty string always returns True. As a result calling `razer-cli -e active,0` sets the device as active instead of inactive.
This commit fixes that by converting the arg to an integer before calling bool() on it.
@LoLei LoLei merged commit 81800a4 into LoLei:master Mar 25, 2024
1 check passed
@LoLei
Copy link
Owner

LoLei commented Mar 25, 2024

Thanks! 🙏

@LoLei
Copy link
Owner

LoLei commented Mar 25, 2024

@all-contributors please add @romainrichard for code

Copy link
Contributor

@LoLei

I've put up a pull request to add @romainrichard! 🎉

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.

None yet

2 participants