def __init__(self, protoConfig): super().__init__() pushchannel = grpc.insecure_channel('localhost:%s' % protoConfig.ports.pushPort) self.pushStub = sensors_pb2.PushStub(pushchannel)