Adding tuya to config keeping generated error

Oh just realized, think its the same as this issue here https://community.home-assistant.io/t/sudden-problems-with-tuya-smart-life-lights/155847/3