Skip to content

Commit

Permalink
feat: add available property to know when the ESP device is connected (
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco authored Dec 14, 2023
1 parent 2bc5b2a commit 7732629
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/bleak_esphome/backend/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down

0 comments on commit 7732629

Please sign in to comment.