Skip to content

Commit db90862

Browse files
committed
fix harmony list targets
1 parent d1d70b3 commit db90862

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

uiautodev/driver/harmony.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,8 @@ def list_device(self) -> List[str]:
6060
if result and not "Empty" in result:
6161
devices = []
6262
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}")
63+
serial = line.strip().split('\t', 1)[0]
64+
devices.append(serial)
6965
return devices
7066
else:
7167
return []

0 commit comments

Comments
 (0)