From 773262937fe106c573077a1f1d43156f00579f64 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 14 Dec 2023 07:36:00 -1000 Subject: [PATCH] feat: add available property to know when the ESP device is connected (#3) --- src/bleak_esphome/backend/device.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bleak_esphome/backend/device.py b/src/bleak_esphome/backend/device.py index 7c9a9c0..bca76d9 100644 --- a/src/bleak_esphome/backend/device.py +++ b/src/bleak_esphome/backend/device.py @@ -20,6 +20,7 @@ class ESPHomeBluetoothDevice: default_factory=list ) loop: asyncio.AbstractEventLoop = field(default_factory=asyncio.get_running_loop) + available: bool = False def async_update_ble_connection_limits(self, free: int, limit: int) -> None: """Update the BLE connection limits."""