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 parsing for bits #5

Merged
merged 2 commits into from
Apr 20, 2024
Merged

Conversation

linuskr
Copy link
Contributor

@linuskr linuskr commented Dec 5, 2023

In python, any non-empty string is truthy. Thus, both "0" and "1" are parsed by bool() to True. This patch explicitly parses "0" as False.

In python, any non-empty string is truthy. Thus, both "0" and "1" are parsed by bool() to True. This patch explicitly parses "0" as False.
@meeas meeas merged commit b5c40a5 into ControlThings-io:main Apr 20, 2024
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