We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1d70b3 commit db90862Copy full SHA for db90862
uiautodev/driver/harmony.py
@@ -60,12 +60,8 @@ def list_device(self) -> List[str]:
60
if result and not "Empty" in result:
61
devices = []
62
for line in result.strip().split("\n"):
63
- if '\t' in line:
64
- serial, state = line.strip().split('\t', 1)
65
- if state == 'device':
66
- devices.append(serial)
67
- else:
68
- logger.warning(f"{serial} is {state}")
+ serial = line.strip().split('\t', 1)[0]
+ devices.append(serial)
69
return devices
70
else:
71
return []
0 commit comments