jasonacox / tinytuya

Python API for Tuya WiFi smart devices using a direct local area network (LAN) connection or the cloud (TuyaCloud API).
MIT License
867 stars 157 forks source link

requirements.txt is missing pyaes #474

Closed Poil closed 3 months ago

Poil commented 3 months ago

Hi,

It looks like requirements.txt is missing pyaes as a new requirement ?

Best regards

uzlonewolf commented 3 months ago

Hi @Poil !

pyaes is not a requirement. TinyTuya supports 3 different crypto libraries and will use whichever one you have installed. pyca/cryptography is recommended and listed in requirements.txt, but if it's not found then PyCryptodome or pyaes can also be used. pyaes is actually not recommended as it does not support AES-GCM which is required for v3.5 devices.

Poil commented 3 months ago

It stranges when I upgrade tinytuya it gave me this error but I have cryptography==3.4.8

Poil commented 3 months ago

I've uninstalled pyaes it is no more asking for it

uzlonewolf commented 3 months ago

What was the error message? It shouldn't say anything about pyaes if it finds cryptography.