Skip to content
This repository has been archived by the owner on Dec 2, 2019. It is now read-only.

Commit

Permalink
added timout as a param to the constructor and updated the version
Browse files Browse the repository at this point in the history
  • Loading branch information
hmn committed Apr 19, 2017
1 parent d50eb36 commit 381fa92
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pylgtv/webos_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def __init__(self, id, message):


class WebOsClient(object):
def __init__(self, ip, key_file_path=None):
def __init__(self, ip, key_file_path=None, timeout_connect=2):
"""Initialize the client."""
self.ip = ip
self.port = 3000
Expand All @@ -31,7 +31,7 @@ def __init__(self, ip, key_file_path=None):
self.web_socket = None
self.command_count = 0
self.last_response = None
self.timeout_connect = 2
self.timeout_connect = timeout_connect

self.load_key_file()

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from setuptools import setup

setup(name='pylgtv',
version='0.1.4',
version='0.1.5',
description='Library to control webOS based LG Tv devices',
url='https://github.com/TheRealLink/pylgtv',
author='Dennis Karpienski',
Expand Down

0 comments on commit 381fa92

Please sign in to comment.