fix summary 1
This commit is contained in:
1 parent
44fa740532
commit
919e96b836
1 file changed
+2
-2
+2
-2
@@ -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']):
|
||||
|
||||
Reference in new issue
Block a user