watchforstock / evohome-client

Python client to access the Evohome web service
Apache License 2.0
88 stars 52 forks source link

Add timeout to requests calls #116

Closed RichieB2B closed 3 years ago

RichieB2B commented 3 years ago

Timeouts are important. As the requests documentation states:

Nearly all production code should use this parameter in nearly all requests. Failure to do so can cause your program to hang indefinitely.

I've seen the Honeywell servers behave erratically, causing EvohomeClient() to hang indefinitely. Adding timeouts should help in that situation.