Deprecate pyserial-asyncio in favor of serialx (#174014)

This commit is contained in:
Josef Zweck
2026-08-18 18:44:30 +02:00
committed by GitHub
parent a92eef998d
commit 3e38ddd788
3 changed files with 7 additions and 8 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ DISCOVERY_INTEGRATIONS: dict[str, Iterable[str]] = {
}
DEPRECATED_PACKAGES: dict[str, tuple[str, str]] = {
# old_package_name: (reason, breaks_in_ha_version)
"pyserial-asyncio": ("should be replaced by pyserial-asyncio-fast", "2026.7"),
"pyserial-asyncio": ("should be replaced by serialx", "2027.2"),
}
_LOGGER = logging.getLogger(__name__)
+2 -3
View File
@@ -104,9 +104,8 @@ FORBIDDEN_PACKAGES = {
"dataclasses-json": "be removed (it can break in Python 3.15)",
# Only needed for docs
"mkdocs": "not be a runtime dependency",
# Does blocking I/O and should be replaced by pyserial-asyncio-fast
# See https://github.com/home-assistant/core/pull/116635
"pyserial-asyncio": "be replaced by pyserial-asyncio-fast",
# See https://developers.home-assistant.io/blog/2026/04/27/pyserial-to-serialx/
"pyserial-asyncio": "be replaced by serialx",
# Only needed for tests
"pytest": "not be a runtime dependency",
# Only needed for build
+4 -4
View File
@@ -683,8 +683,8 @@ async def test_discovery_requirements_dhcp(hass: HomeAssistant) -> None:
"pyserial-asyncio",
False,
"Detected that custom integration",
"which should be replaced by pyserial-asyncio-fast. This will stop"
" working in Home Assistant 2026.7, please create a bug report at "
"which should be replaced by serialx. This will stop"
" working in Home Assistant 2027.2, please create a bug report at "
"https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+"
"label%3A%22integration%3A+test_component%22",
),
@@ -692,8 +692,8 @@ async def test_discovery_requirements_dhcp(hass: HomeAssistant) -> None:
"pyserial-asyncio>=0.6",
True,
"Detected that integration",
"which should be replaced by pyserial-asyncio-fast. This will stop"
" working in Home Assistant 2026.7, please create a bug report at "
"which should be replaced by serialx. This will stop"
" working in Home Assistant 2027.2, please create a bug report at "
"https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+"
"label%3A%22integration%3A+test_component%22",
),