]> www.average.org Git - loctrkd.git/blobdiff - loctrkd/zx303proto.py
beesure: remove the PROTO attribute
[loctrkd.git] / loctrkd / zx303proto.py
index 8c21418cd7a13c9af9f03c57d9d345f8c5592a50..4d5730304fbead5492db2c1b08f5bf86381a0618 100755 (executable)
@@ -863,7 +863,7 @@ if True:  # just to indent the code, sorry!
 
 def class_by_prefix(
     prefix: str,
-) -> Union[Type[GPS303Pkt], List[Tuple[str, int]]]:
+) -> Union[Type[GPS303Pkt], List[str]]:
     if prefix.startswith(PROTO_PREFIX):
         pname = prefix[len(PROTO_PREFIX) :]
     else:
@@ -874,7 +874,7 @@ def class_by_prefix(
         if name.upper().startswith(prefix.upper())
     ]
     if len(lst) != 1:
-        return lst
+        return [name for name, _ in lst]
     _, proto = lst[0]
     return CLASSES[proto]