mirror of
https://github.com/home-assistant/core.git
synced 2026-08-24 02:24:51 -05:00
Deprecate pyserial-asyncio in favor of serialx (#174014)
This commit is contained in:
@@ -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__)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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",
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user