Thanks for the suggestion! Here is my modified version of tuya.py

but i get the following error
I think maybe i have formatting wrong?
I also have pytuya init.py copied to your suggested folder
- custom_components
| - switch
| - | - tuya.py
| - | - pytuya
| - | - | - init.py
Thanks agan
