From ad4f7f8eb53ac1d17a9c7517609c8bef89960634 Mon Sep 17 00:00:00 2001 From: Nuno Sousa Date: Fri, 10 Nov 2017 22:29:09 +0000 Subject: [PATCH] Fix default timeout for websocket connections --- samsungctl/remote_websocket.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/samsungctl/remote_websocket.py b/samsungctl/remote_websocket.py index b1382ba..d218f8e 100644 --- a/samsungctl/remote_websocket.py +++ b/samsungctl/remote_websocket.py @@ -15,6 +15,9 @@ def __init__(self, config): if not config["port"]: config["port"] = 8001 + if config["timeout"] == 0: + config["timeout"] = None + URL_FORMAT = "ws://{}:{}/api/v2/channels/samsung.remote.control?name={}" """Make a new connection."""