Closed yuvalabou closed 8 months ago
I don't mean to be a jerk but there is no reason to correct working code for stylistic reasons. PRs should be submitted for bugs of improvements. Your changes are both unnecessary and logically wrong. The first will cause an exception to be raised if values is None and the second is both less efficient than the previous code and also logically wrong because it doesn't do the same thing. It doesn't check if the string ends with "on" or "off". So I'm closing this PR.
Has been tested to work localy