Skip to content

Commit 695e3c0

Browse files
committed
Discovery fixes
1 parent 029b18e commit 695e3c0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

airos/discovery.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def datagram_received(self, data: bytes, addr: tuple[str, int]) -> None:
5959
parsed_data: dict[str, Any] | None = self.parse_airos_packet(data, host_ip)
6060
if parsed_data:
6161
# Schedule the user-provided callback, don't await to keep listener responsive
62-
asyncio.create_task(self.callback(parsed_data)) # noqa: RUF006
62+
self.callback(parsed_data)
6363
except (AirosEndpointError, AirosListenerError) as err:
6464
# These are expected types of malformed packets. Log the specific error
6565
# and then re-raise as AirosDiscoveryError.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "airos"
7-
version = "0.2.0"
7+
version = "0.2.1"
88
license = "MIT"
99
description = "Ubiquity airOS module(s) for Python 3."
1010
readme = "README.md"

0 commit comments

Comments
 (0)