sampsyo / wideq

reverse-engineered client for the LG SmartThinQ API
https://pypi.org/project/wideq/
MIT License
332 stars 158 forks source link

Improve retry logic #88

Closed swails closed 4 years ago

swails commented 4 years ago

Before adding this change, my smartthinq custom component on hassio would crash daily due to connection errors to LG's servers.

Since adding this change (which implements retries when it hits 500, 502, 504, and when connections fail), my component has gone days without breaking due to an uncaught exception.

sampsyo commented 4 years ago

OK, merged! Thank you again for your help with this!!!! :tada: Let me know if I broke anything.