From 74538341bf0b94d5e68399efef2ef9e8770068ff Mon Sep 17 00:00:00 2001 From: Michel van de Wetering Date: Fri, 29 Nov 2024 16:00:24 +0100 Subject: [PATCH] Switch to serial_asyncio_fast --- epson_projector/projector_serial.py | 4 ++-- requirements.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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