Closed tomdov closed 1 year ago
Check out tuya/tuya-home-assistant#851 (comment)
Hope @tsutsuku can pick this up to patch openapi.py, otherwise I'm happy to create/submit a PR tomorrow, I have just run out of time for today.
Added PR for it: https://github.com/tuya/tuya-iot-python-sdk/pull/65
token API doesn't respond with expiration time as string anymore, issue doesn't re-occur
https://github.com/tuya/tuya-iot-python-sdk/blob/20a7c92898fdd44e559667bbf8f2bf6fdb1e9185/tuya_iot/openapi.py#L42
the returned dictionary contains
'expire_time': '7200'
which isstr
, therefore exception is raised: