Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion custom_components/schellenberg_usb/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import logging
from collections.abc import Callable

import serial_asyncio
import serial_asyncio_fast as serial_asyncio
from homeassistant.core import HomeAssistant, callback
from homeassistant.helpers.dispatcher import async_dispatcher_send

Expand Down
4 changes: 2 additions & 2 deletions custom_components/schellenberg_usb/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
"integration_type": "hub",
"iot_class": "local_push",
"issue_tracker": "https://github.com/hrabbach/schellenberg_usb/issues",
"requirements": ["pyserial-asyncio==0.6"],
"requirements": ["pyserial-asyncio-fast==0.16"],
"usb": [
{
"vid": "16C0",
"pid": "05E1",
"manufacturer": "van ooijen"
}
],
"version": "1.3.1"
"version": "1.3.2"
}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "1.0.0"
readme = "README.md"
requires-python = ">=3.13.2"
dependencies = [
"pyserial-asyncio==0.6",
"pyserial-asyncio-fast==0.16",
]

[dependency-groups]
Expand Down
6 changes: 3 additions & 3 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async def test_api_connect_success(hass: HomeAssistant) -> None:
api = SchellenbergUsbApi(hass, "/dev/ttyUSB0")

with patch(
"serial_asyncio.create_serial_connection", new_callable=AsyncMock
"serial_asyncio_fast.create_serial_connection", new_callable=AsyncMock
) as mock_create:
mock_transport = MagicMock()
mock_protocol = MagicMock()
Expand All @@ -94,7 +94,7 @@ async def test_api_connect_already_connecting(hass: HomeAssistant) -> None:
api._is_connecting = True

with patch(
"serial_asyncio.create_serial_connection", new_callable=AsyncMock
"serial_asyncio_fast.create_serial_connection", new_callable=AsyncMock
) as mock_create:
await api.connect()

Expand Down Expand Up @@ -153,7 +153,7 @@ async def test_api_send_command_not_connected(hass: HomeAssistant) -> None:
api._is_connected = False

# Should not raise but also not send
with patch("serial_asyncio.create_serial_connection", new_callable=AsyncMock):
with patch("serial_asyncio_fast.create_serial_connection", new_callable=AsyncMock):
await api.send_command("test_command")
# This would not raise an error, but wouldn't send either

Expand Down
14 changes: 6 additions & 8 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.