micropython-lib
micropython-lib copied to clipboard
aioble/security: Only schedule save when needed.
Was getting occasional: RuntimeError: schedule queue full if there was a flood of BLE activity.
This also consolidates the disk write for back-to-back security operations which are common during pairing.