sort result summary

This commit is contained in:
matt committed 2026-10-16 22:15:14 -07:00
1 parent 44eb88ef0a
commit 8f8ed4bda7
1 file changed
+2 -1
+2 -1
View File
@@ -339,7 +339,8 @@ if __name__ == "__main__":
for test_result in test_results: for test_result in test_results:
log.info(f"{test_result['test_label']}:") log.info(f"{test_result['test_label']}:")
parts: List[str] = [] parts: List[str] = []
for reading in test_result['test_result']['sensor_results']: # Sort sensor results alphabetically by 'name' before printing
for reading in sorted(test_result['test_result']['sensor_results'], key=lambda r: r['name']):
mac = reading['name'] mac = reading['name']
temp = reading['temp'] temp = reading['temp']
# Grab the last two octets of the MAC address # Grab the last two octets of the MAC address