Skip to content

Migrate to pyserial-asyncio-fast (HA 2026.7 deprecation) — v1.3.2#9

Merged
hrabbach merged 3 commits into
mainfrom
gsd/quick-pyserial-asyncio-fast
Jun 27, 2026
Merged

Migrate to pyserial-asyncio-fast (HA 2026.7 deprecation) — v1.3.2#9
hrabbach merged 3 commits into
mainfrom
gsd/quick-pyserial-asyncio-fast

Conversation

@hrabbach

Copy link
Copy Markdown
Owner

Summary

Home Assistant logs a deprecation warning on startup (requirements.py:271): the integration's pyserial-asyncio==0.6 requirement should be replaced by pyserial-asyncio-fast, and will stop working in HA 2026.7. This migrates to the maintained drop-in replacement.

Changes

  • manifest.json / pyproject.toml: pyserial-asyncio==0.6pyserial-asyncio-fast==0.16
  • uv.lock: relocked
  • api.py: import serial_asyncio_fast as serial_asyncio — both call sites (create_serial_connection, serial_asyncio_fast.serial.SerialException) unchanged. The fast package imports serial at module level, so .serial.SerialException resolves identically.
  • tests/test_api.py: repointed the 3 serial_asyncio.create_serial_connection patch targets to serial_asyncio_fast.create_serial_connection (the patches target the global module import path, so the alias alone wouldn't keep them valid)
  • config_flow.py / options_flow.py use plain import serial (pyserial) — unaffected
  • Version bump → 1.3.2 (patch)

Verification

  • pytest (full suite, WSL): 208 passed, 1 pre-existing unrelated warning
  • ruff: clean
  • mypy: only the 1 pre-existing api.py:100 error (verified present before this change; no new errors)

hrabbach added 3 commits June 27, 2026 11:39
…-fast==0.16

- manifest.json requirements: pyserial-asyncio==0.6 -> pyserial-asyncio-fast==0.16
- pyproject.toml dependencies: same swap
- uv.lock: relocked; fast package added, old package removed
…nt test patches

- api.py: `import serial_asyncio_fast as serial_asyncio` — call sites unchanged
- tests/test_api.py: 3 patch targets updated to serial_asyncio_fast.create_serial_connection
@hrabbach hrabbach merged commit ba79ef8 into main Jun 27, 2026
1 check passed
@hrabbach hrabbach deleted the gsd/quick-pyserial-asyncio-fast branch June 27, 2026 09:40
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