fix summary 1

This commit is contained in:
matt committed 2026-10-17 23:54:51 -07:00
1 parent 44fa740532
commit 919e96b836
1 file changed
+2 -2
+2 -2
View File
@@ -391,11 +391,11 @@ if __name__ == "__main__":
for test_result in test_results:
log.info(f"{test_result['test_label']}:")
mac_parts: List[str] = []
for mac in sorted(test_result['found_macs']): # optional sort
for mac in sorted(test_result['test_result']['found_macs']): # optional sort
short_mac = ":".join(mac.split(":")[-2:])
mac_parts.append(short_mac)
found_macs_summary = " | ".join(mac_parts) # e.g. "A1:23 | B4:56"
log.info(f"Found {len(test_result['found_macs'])} MACs - {found_macs_summary}")
log.info(f"Found {len(test_result['test_result']['found_macs'])} MACs - {found_macs_summary}")
parts: List[str] = []
# Sort sensor results alphabetically by 'name' before printing
for reading in sorted(test_result['test_result']['sensor_results'], key=lambda r: r['name']):