Skip to content

Commit 65b6b52

Browse files
committed
Async function
1 parent 01f130e commit 65b6b52

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

airos/discovery.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ async def async_discover_devices(timeout: int) -> dict[str, dict[str, Any]]:
284284
_LOGGER.debug("Starting AirOS device discovery for %s seconds", timeout)
285285
discovered_devices: dict[str, dict[str, Any]] = {}
286286

287-
def _async_airos_device_found(device_info: dict[str, Any]) -> None:
287+
async def _async_airos_device_found(device_info: dict[str, Any]) -> None:
288288
"""Handle discovered device."""
289289
mac_address = device_info.get("mac_address")
290290
if mac_address:
@@ -321,5 +321,4 @@ def _async_airos_device_found(device_info: dict[str, Any]) -> None:
321321
_LOGGER.exception("An unexpected error occurred during discovery")
322322
raise AirOSListenerError("cannot_connect") from err
323323

324-
_LOGGER.debug("Discovery completed. Found %s devices.", len(discovered_devices))
325324
return discovered_devices

0 commit comments

Comments
 (0)