Skip to content

Replace deprecated pyserial-asyncio dependency#161

Open
Komzpa wants to merge 1 commit into
meshtastic:mainfrom
Komzpa:codex/replace-pyserial-asyncio-fast
Open

Replace deprecated pyserial-asyncio dependency#161
Komzpa wants to merge 1 commit into
meshtastic:mainfrom
Komzpa:codex/replace-pyserial-asyncio-fast

Conversation

@Komzpa

@Komzpa Komzpa commented May 3, 2026

Copy link
Copy Markdown

Summary

  • replace the integration requirement from pyserial-asyncio to pyserial-asyncio-fast
  • update the development requirements file to use the same replacement package
  • update the serial transport import to use serial_asyncio_fast explicitly

Why

Home Assistant Core now warns that pyserial-asyncio is deprecated for integrations and should be replaced by pyserial-asyncio-fast; the warning says the old package will stop working in Home Assistant 2026.7.

The code change is needed because pyserial-asyncio-fast exposes the replacement module as serial_asyncio_fast, not serial_asyncio. Without this import update, the integration's serial backend would no longer load when only the replacement package is installed.

Testing

  • python -m ruff check .
  • python -m ruff format . --check
  • git diff --check
  • isolated Python smoke: verified pyserial-asyncio-fast==0.16 is installed, pyserial-asyncio is not installed, and custom_components.meshtastic.aiomeshtastic.connection.serial.SerialConnection imports with serial_asyncio_fast

@Komzpa
Komzpa force-pushed the codex/replace-pyserial-asyncio-fast branch from 063f36c to b23a9ab Compare May 3, 2026 21:46
@Komzpa
Komzpa marked this pull request as ready for review May 6, 2026 21:27
@Komzpa
Komzpa force-pushed the codex/replace-pyserial-asyncio-fast branch from b23a9ab to c480de7 Compare May 24, 2026 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant