Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 4 additions & 14 deletions pyplejd/ble/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,20 +124,10 @@ def _disconnect(client: BleakClient):
max_attempts=2,
)

# Workaround for problem in plejd firmware 2026-05-20
# Disconnect and connect again
_CONNECTION_LOG.debug(
"BT Proxy workaround - Disconnecting for 5 seconds."
)
await client.disconnect()
await asyncio.sleep(5)
_CONNECTION_LOG.debug("BT Proxy workaround - Reconnecting")
client = await establish_connection(
BleakClientWithServiceCache,
node.bleDevice,
node.bleDevice.name,
_disconnect,
)
# Disabled local test patch:
# The double-connect workaround can destabilize newer Plejd firmware.
# Use the first established connection directly and attach the disconnect callback.
client.set_disconnected_callback(_disconnect)

if not await self._authenticate(client):
await client.disconnect()
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

MIN_PY_VERSION = "3.10"
PACKAGES = find_packages()
VERSION = "0.21.3"
VERSION = "0.21.3.post1"

setup(
name="pyplejd",
Expand Down