jasonacox / tinytuya

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

skip DPS detection if it has already been set #169

Closed pawel-szopinski closed 2 years ago

pawel-szopinski commented 2 years ago

since detect_available_dps() function takes considerable amount of time to run, skip it if DPS has already been set for a device with set_dpsUsed() function

jasonacox commented 2 years ago

Great addition! Thanks for the PR. Merged!