hi im not sure if this is place where i can to look for help with this problem but i have contact sensors from aliexpress that tuya integration dont support local tuya too so i used this this tutorial https://blog.rpanachi.com/howto-integrate-unsupported-tuya-devices-homeassistant to check if in my case door is open on HA it working for like 10hours and in the night today its stopped working on tuya dev api exproler when i want to get device info i cant code error 1010 token expired ( i cant to get new token) and this script give me this when i try to use it
Traceback (most recent call last):
File "/PATH_TO_YOUR_CONFIG/tuya.py", line 94, in <module>
attributes = get_device_properties(access_token, device_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/PATH_TO_YOUR_CONFIG/tuya.py", line 76, in get_device_properties
properties = json_result["result"]["properties"]
~~~~~~~~~~~^^^^^^^^^^
KeyError: 'result'
some one know how to fix this or i just need to wait
Connecting directly to Tuya's API using Python