Skip to content

Commit

Permalink
feat: update the out of slots message to be more clear (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Jul 17, 2023
1 parent 50da16b commit 9269a82
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/bleak_retry_connector/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@
)

OUT_OF_SLOTS_ADVICE = (
"The proxy/adapter is out of connection slots; "
"Add additional proxies near this device"
"The proxy/adapter is out of connection slots or the device is no longer reachable; "
"Add additional proxies (https://esphome.github.io/bluetooth-proxies/) near this device"
)

NORMAL_DISCONNECT = "Disconnected"
Expand Down
10 changes: 5 additions & 5 deletions tests/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,11 +476,11 @@ async def disconnect(self, *args, **kwargs):

assert isinstance(exc, BleakOutOfConnectionSlotsError)
assert str(exc) == (
"test - aa:bb:cc:dd:ee:ff: "
"Failed to connect: "
"out of connection slots: "
"The proxy/adapter is out of connection slots; "
"Add additional proxies near this device"
"test - aa:bb:cc:dd:ee:ff: Failed to connect: "
"out of connection slots: The proxy/adapter is "
"out of connection slots or the device is no "
"longer reachable; Add additional proxies "
"(https://esphome.github.io/bluetooth-proxies/) near this device"
)


Expand Down

0 comments on commit 9269a82

Please sign in to comment.