[Bug]: 0 is interpreted as None, this is incorrect. #652
Labels
bug
Something isn't working
master/next-release
Fixed in master branch, Will be ready in the next release
LocalTuya Version
No response
Home Assistant Version
2025.5.1
Environment
What happened?
0 is interpreted as None, this is incorrect.
In sensor.py, in the function "def status_updated(self):" is the code:
The following code is better. Because if a sensor returns 0, it must not be interpreted as None.
Steps to reproduce.
Add a sensor with base64 - Value. And change the Value to 0.
Relevant log output
Diagnostics information.
No response
The text was updated successfully, but these errors were encountered: