1 Commits
Author SHA1 Message Date
Ferdi van der Werf 58d8959fc2 Add timeout argument
If you're polling a smartplug and it's not connected to your WiFi you're waiting for a timeout which is not set by default ( https://docs.python.org/3/library/socket.html#socket.getdefaulttimeout ). This change adds an argument `--timeout` so you can provide you own timeout or use the default timeout of 10 seconds.
2020-05-23 19:08:36 +02:00