fix device type info
This commit is contained in:
1 parent
206099ab64
commit
12a59346e9
2 files changed
+12
-2
No files matched your search
@@ -53,6 +53,6 @@ def build_device(address: str, name: str):
|
||||
|
||||
def get_type_by_bt_name(bt_name: str):
|
||||
match = DEVICE_NAME_RE.match(bt_name)
|
||||
if match is None or len(match) < 2:
|
||||
if match is None:
|
||||
return "Unknown"
|
||||
return match[1]
|
||||
Reference in new issue
Block a user