mirror of
https://github.com/xcat2/confluent.git
synced 2026-09-05 04:27:56 +00:00
f5ee86f97e
get_sensor_names and get_sensor_descriptions reach get_psu_count for any sensor whose table entry carries elementsfun, and get_psu_count is a coroutine. As plain generators they could not await it, so range() was handed the coroutine object and enumeration died with "'coroutine' object cannot be interpreted as an integer". Every DW612S has such entries, so nodesensors returned nothing for the enclosure. get_sensor_descriptions was doubly broken: the Lenovo handler already iterated it with async for, which a plain generator cannot satisfy. Verified against a DW612S SMM (FPC variant 38). Before, descriptions raised at the async for and readings raised partway through enumeration; after, both return all 34 sensors, 19 of which are the PSU entries that never enumerated.