Skip to content

Commit a679dee

Browse files
committed
change import of asyncio exceptions
1 parent eab7367 commit a679dee

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

epson_projector/projector_http.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import logging
33

44
import aiohttp
5-
from asyncio.exceptions import TimeoutError as AsyncTimeout
5+
import asyncio
66
import async_timeout
77

88
from .const import (ACCEPT_ENCODING, ACCEPT_HEADER, BUSY,
@@ -91,6 +91,6 @@ async def send_request(self, params, timeout,
9191
if type == 'json_query':
9292
return await response.json()
9393
return response
94-
except (aiohttp.ClientError, aiohttp.ClientConnectionError, TimeoutError, AsyncTimeout):
94+
except (aiohttp.ClientError, aiohttp.ClientConnectionError, TimeoutError, asyncio.exceptions.TimeoutError):
9595
_LOGGER.error("Error request")
9696
return STATE_UNAVAILABLE

epson_projector/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
"""Version of Epson projector module."""
2-
__version__ = '0.2.2'
2+
__version__ = '0.2.3'

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
aiohttp>=3.3.0
22
pyserial_asyncio>=0.4
3-
asyncio>=3.4.3
43
async_timeout>=3.0.0

0 commit comments

Comments
 (0)