SMART
- async OPNsenseClient.get_smart()
Return SMART device data from the OPNsense SMART plugin.
- Returns:
- SMART device rows, or an empty list when the
endpoint returns 404. With
throw_errorsoff, 403 and transient HTTP or transport failures return an empty list, and an undecodable response body returnsNone. Withthrow_errorson, those failures raiseOPNsenseError.
- Return type:
- async OPNsenseClient.get_smart_info(device, info_type='a')
Return SMART detail data for a single device.
- Parameters:
- Returns:
- Decoded SMART details, with non-mapping outputs
wrapped under
output. A 404 returns an empty dictionary. Withthrow_errorsoff, 403 and transient HTTP or transport failures return an empty dictionary, and an undecodable response body returnsNone. Withthrow_errorson, those failures raiseOPNsenseError.
- Return type: