From e47aa7f13b6943284d0324b355c44bae15b5e60a Mon Sep 17 00:00:00 2001 From: Sam Bull Date: Thu, 2 Jan 2025 20:19:14 +0000 Subject: [PATCH] Fix AttributeError (#103) --- adapter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adapter.py b/adapter.py index 031a85d..dde0ae4 100644 --- a/adapter.py +++ b/adapter.py @@ -40,7 +40,7 @@ class _GetDevices(TypedDict): class BluetoothAdapter: - adapter: Optional[InterfaceProxy] + adapter: Optional[InterfaceProxy] = None def __init__(self, bus: SystemMessageBus, loop: asyncio.AbstractEventLoop, bluetooth_devices: BluetoothDeviceRegistry, hid_devices: HIDDeviceRegistry):