fix device type info

This commit is contained in:
Patrick762 committed 2024-05-31 16:59:46 +02:00
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]