diff --git a/pb.py b/pb.py index 501a350..9213bbf 100644 --- a/pb.py +++ b/pb.py @@ -167,6 +167,7 @@ def _normalize_schema(schema): fields[int(fid)] = fs names[name] = int(fid) else: + print("item=",item, "alt=",alt) raise ValueError("unsupported tuple length in oneof alternative") continue diff --git a/service.py b/service.py index 4024ae9..1623808 100644 --- a/service.py +++ b/service.py @@ -116,7 +116,7 @@ class MeshMultiListener(MeshArgsParse): logger.info(str(device), " device will reconnect") device.state = RECONNECT finally: - await self.device.close() + await device.close() class MeshApi(MeshArgsParse): app: FastAPI