jasonacox / tinytuya

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

Fixed endless loop causing 100% cpu usage #390

Closed michaelmittermair closed 11 months ago

michaelmittermair commented 11 months ago

The sleep is outside the loop. This lead on a raspberry to hit 100% of cpu usage just for the gateway

mschlenstedt commented 11 months ago

@michaelmittermair is absolutely right. I can confirm that.

jasonacox commented 11 months ago

Thanks @michaelmittermair ! 🙏