Context
The auto-trigger convention (#44) specifies that timeout errors in _ensure_data() and related polling methods should raise OSError. Most drivers follow this:
| Driver |
Timeout exception |
Follows #44 |
| HTS221 |
OSError |
✅ |
| LIS2MDL |
OSError |
✅ |
| VL53L1X |
OSError |
✅ |
| APDS9960 |
OSError |
✅ |
| ISM330DL |
OSError |
✅ |
| BME280 |
OSError |
✅ (fixed in PR #318) |
| WSEN-PADS |
WSENPADSTimeout |
❌ |
| WSEN-HIDS |
WSENHIDSTimeoutError |
❌ |
Tasks
Reference
Context
The auto-trigger convention (#44) specifies that timeout errors in
_ensure_data()and related polling methods should raiseOSError. Most drivers follow this:OSErrorOSErrorOSErrorOSErrorOSErrorOSErrorWSENPADSTimeoutWSENHIDSTimeoutErrorTasks
lib/wsen-pads/wsen_pads/device.py: changeraise WSENPADSTimeout(...)toraise OSError(...)in_ensure_data()and_wait_boot()lib/wsen-hids/wsen_hids/device.py: changeraise WSENHIDSTimeoutError(...)toraise OSError(...)in one-shot timeout pathsexceptions.pyif no longer referencedReference
OSError)