Block pyserial-asyncio in favor of pyserial-asyncio-fast#116635
Block pyserial-asyncio in favor of pyserial-asyncio-fast#116635
Conversation
pyserial-asyncio does blocking I/O in asyncio loop and is not maintained
pyserial-asyncio is unmantained and does blocking I/O in the event loop
This may not be possible yet, but the long term goal is to get rid of pyserial-asyncio everywhere so we can prevent future integrations from using it and than we have to go though the effort of getting them to replace it with pyserial-asyncio-fast to avoid the event loop being blocked needed for #116635
|
I have issue with OpenTherm (OTGW) integration - there are no open issues regarding that integration. It uses socket:// to connect to gateway and I see warning in logfile: I do not see any other errors regarding OpenTherm. Only informational that it can't connect to socket:// in UI. |
|
I was under the impression it was fixed in 2024.5.1 via #116527. If there is still a problem, please open a new issue report. |
|
New version of HA has more detailed info. It seems that issue is connected not directly with OTGW I've mentioned but pysocket in 'config' part of HA core.
|
|
Looks like have one more https://www.home-assistant.io/integrations/epson |
|
There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. |
While this is not strictly related to PyPlumIO as a standalone project, I belive it's beneficial for it as well. See: https://developers.home-assistant.io/blog/2026/01/05/pyserial-asyncio-fast See: home-assistant/core#116635
needs
previous issue reports
... and lots more https://github.com/home-assistant/core/issues?q=is%3Aissue+sort%3Aupdated-desc+sleep+is%3Aclosed+label%3A%22blocking+I%2FO+in+event+loop%22+
Proposed change
pyserial-asyncio does blocking I/O (actually its a
sleep, but falls under the same class of issue) in asyncio loop and is not maintainedI'm hoping we have removed all usage at this point, but if not, this PR will fail
Type of change
Additional information
Checklist
ruff format homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all..coveragerc.To help with the load of incoming pull requests: