v0.2.1rc1
Pre-release
Pre-release
Pre-release - for testing
A real PEP 440 pre-release: pip install pybluetti will not pick this up. Test with:
pip install pybluetti==0.2.1rc1
Fixed
_run()was leaving the abandoned websocket connection open on every exit path except a token-expiry (msgCode 805) - anApplicationRuntimeException, a plain ERROR/CLOSE message, or an unexpected crash all skippedclose(). This let a concurrently-running heartbeat send slip past its own is-it-closed check and fail against the transport, reported asFailed to send heartbeat: Cannot write to closing transportrepeating on every ~30s reconnect cycle - confirmed in production on 0.2.0 itself, via bluetti-official/bluetti-home-assistant#145._run()now closes the connection itself as soon as it decides to abandon it.
See the CHANGELOG for the full technical writeup.