-
Notifications
You must be signed in to change notification settings - Fork 26
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
[tuya] Improve decode color format error handling #541
Conversation
I would suggest a different solution, that also covers illegal formats for other value: Surround l. 166 to l. 193 with
And keep the log we have now. WDYT? |
What about handling As far as setting the channel to |
I agree, but it sure is garbage. We can't know if it is a single "initial value" or we received an invalid value later, so I guess a warning is fine. We usually try to return definite values and not I agree that we should use |
Signed-off-by: jsetton <jeremy.setton@gmail.com>
ad1212b
to
63dea16
Compare
I made the changes per your comments. I forgot that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks.
Signed-off-by: jsetton <jeremy.setton@gmail.com> (cherry picked from commit a616368)
Fixes #540