diff --git a/epson_projector/projector_serial.py b/epson_projector/projector_serial.py index 3292a54..4180240 100644 --- a/epson_projector/projector_serial.py +++ b/epson_projector/projector_serial.py @@ -2,7 +2,7 @@ import logging import asyncio -import serial_asyncio +import serial_asyncio_fast from serial.serialutil import SerialException from .const import ESCVP_HELLO_COMMAND, COLON, CR, GET_CR, BUSY, ERROR, SNO import async_timeout @@ -46,7 +46,7 @@ async def async_init(self): ( self._reader, self._writer, - ) = await serial_asyncio.open_serial_connection( + ) = await serial_asyncio_fast.open_serial_connection( url=self._host, baudrate=9600, loop=self._loop ) if self._reader and self._writer: diff --git a/requirements.txt b/requirements.txt index 6806597..158c38b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ aiohttp>=3.3.0 -pyserial_asyncio>=0.4 +pyserial-asyncio-fast>=0.14 async_timeout>=3.0.0