del x[4]
del headers[4]
devices = set([x[3] for x in data])
if len(devices) == 1:
// don"t log the device if all vars on the same device
for x in data:
del x[3]
After Change
del x[4]
del headers[4]
devices = {x[3] for x in data}
if len(devices) == 1:
// don"t log the device if all vars on the same device
for x in data:
del x[3]