jasonacox / tinytuya

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

Remove requirement for PyCryptodome in scanner (allows pyaes when no … #332

Closed uzlonewolf closed 1 year ago

uzlonewolf commented 1 year ago

…devices are v3.5+) Also has a slight tweak to README.md.

Mentioned in #322

jasonacox commented 1 year ago

Thanks @uzlonewolf - I noticed that the debug statements to identify the AES library were not working. I moved them to the set_debug() function.

image
$ python3 -m tinytuya -d
DEBUG:TinyTuya [1.12.5]

DEBUG:Python 3.10.5 (v3.10.5:f377153967, Jun  6 2022, 12:36:10) [Clang 13.0.0 (clang-1300.0.29.30)] on darwin
DEBUG:Using pyaes version [1, 3, 0]
DEBUG:loaded=devices.json [39 devices]

TinyTuya (Tuya device scanner) [1.12.5]

[Loaded devices.json - 39 devices]
...
jasonacox commented 1 year ago

Added this into v1.12.5. Released.