tuya / tuya-device-sharing-sdk

Tuya Device Sharing SDK
MIT License
19 stars 6 forks source link

Invalid datatype returned by tuya sdk for device requests - breaks Home Assistant Integration #15

Open amithkk opened 3 months ago

amithkk commented 3 months ago

The Tuya SDK returns strings instead of floats for various values retrieved from devices, although the API contract states that it will return a float.

This breaks integrations with lights, fans and covers on Home Assistant as covered in various issues, such as:

As this is an issue with the Tuya API/SDK returning an invalid datatype, it is unlikely to be addressed within Home Assistant (see https://github.com/home-assistant/core/pull/121731)

This unfortunately leaves many Tuya devices fundamentally broken in HASS and possibly many other projects.

KunalAggarwal commented 3 weeks ago

Tuya has fixed the API in the backend and returns the desired data type. This issue should have been fixed.