Repository navigation
Conversation
meshtastic#998 prints the BLE endpoint as interface.client.address, but BLEInterface.client is a BLEClient, which has no address attribute (it wraps a BleakClient). Every 'meshtastic --ble ...' run aborted with "'BLEClient' object has no attribute 'address'". The test faked a client with a top-level address, so it passed; it now uses the real shape.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Since #998, every
meshtastic --ble <device> ...run aborts right after connecting:onConnectedprintsinterface.client.address, butBLEInterface.clientis aBLEClient, which wraps aBleakClientand has noaddressof its own. The fix readsinterface.client.bleak_client.address.The existing
test_on_connected_transportcase fakedclientasSimpleNamespace(address=...), so it passed against the broken code. It now uses the real shape (client.bleak_client.address), and fails without the fix.Testing
pytest -k on_connected: 7 passed; the BLE case fails on master.meshtastic --ble ethl_5372 --get bluetoothaborts on master and printsConnected to radio via BLE <address>followed by the settings with this change.Summary by CodeRabbit