-
Notifications
You must be signed in to change notification settings - Fork 490
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
TypeError: unsupported operand type(s) for -: 'NoneType' and 'float' when a light device is unavailable #1738
Comments
Hello, i dont know, but i have FAN (Windcalm) after some Updates the device stays Unavailable: Dieser Fehler wurde von einer benutzerdefinierten Integration verursacht Logger: custom_components.tuya_local.device Deckenventilator receive loop terminated by exception unsupported operand type(s) for -: 'NoneType' and 'float' |
The fan issue was already fixed under #1513 |
If the brightness dp is not available, trying to get the light's brightness will result in an exception. During startup this can cause the light to fail initialisation, and remain unavailable even if the issue resolves itself later. Issue make-all#1738 (related to earlier make-all#1513 fix for fans)
This form is for reporting bugs. If you have encountered a bug, you should
generally have some log messages or device diagnostics to show something is
going wrong. If your problem is more of a question or a request for help,
then Discussions is
probably a more suitable venue.
Describe the bug
A clear and concise description of what the bug is.
When a light device is unavailable and brightness setting is changed (via automation), the following error will be thrown. This seems to break the receive loop as well so Tuya Local cannot try reconnecting to the device:
To Reproduce
Steps to reproduce the behavior including the device the issue was observed with:
Expected behavior
A clear and concise description of what you expected to happen.
Additional context
Add any other context about the problem here.
If the bug involves a device, then please include device diagnostics from
Settings / Devices & Services / Tuya Local (your device) / "1 device"
Please check if there are messages from Tuya Local in the Home
Assistant log (Settings / System / Logs), and include those too.
If applicable, add screenshots to help explain your problem.
The text was updated successfully, but these errors were encountered: