diff --git a/src/bluetooth_auto_recovery/recover.py b/src/bluetooth_auto_recovery/recover.py index 548b602..e542efd 100644 --- a/src/bluetooth_auto_recovery/recover.py +++ b/src/bluetooth_auto_recovery/recover.py @@ -11,12 +11,15 @@ try: from fcntl import ioctl + + import pyric.utils.rfkill as rfkill except ImportError: ioctl = None # type: ignore + rfkill = None + from typing import Any, AsyncIterator, cast import pyric.net.wireless.rfkill_h as rfkh -import pyric.utils.rfkill as rfkill from bluetooth_adapters import get_adapters_from_hci from btsocket import btmgmt_protocol, btmgmt_socket from btsocket.btmgmt_socket import AF_BLUETOOTH, BTPROTO_HCI