diff --git a/README.rst b/README.rst index b89462f..fb339c8 100644 --- a/README.rst +++ b/README.rst @@ -212,6 +212,9 @@ be accessed via the EnerVu App. Changelog ========= +**2020-05-30 0.1.6** + - repair crash introduced with 0.1.5 + **2020-05-30 0.1.5** - some extra logging, timeouts and exception handling. Might fix #7 diff --git a/pyess/__init__.py b/pyess/__init__.py index 885fa05..c694e2e 100755 --- a/pyess/__init__.py +++ b/pyess/__init__.py @@ -3,4 +3,4 @@ #__all__ = ['cli', 'ess'] -__version__ ="0.1.5" +__version__ ="0.1.6" diff --git a/pyess/aio_ess.py b/pyess/aio_ess.py index 23d5c13..f84098d 100755 --- a/pyess/aio_ess.py +++ b/pyess/aio_ess.py @@ -39,8 +39,8 @@ def __init__(self, name, pw, ip=None): self.ip = ip self.logged_in = False self.auth_key = None - self.session = aiohttp.ClientSession(connector=aiohttp.TCPConnector(ssl=False), read_timeout=60, - conn_timeout=60, timeout=120) + self.session = aiohttp.ClientSession(connector=aiohttp.TCPConnector(ssl=False), + timeout=aiohttp.ClientTimeout(connect=60,sock_read=60, sock_connect=60, total=180)) async def _login(self, retry=1): """